Changes between Version 20 and Version 21 of AWIKIServer


Ignore:
Timestamp:
08/20/15 19:29:12 (4 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AWIKIServer

    v20 v21  
    1010 * {{{ mysql -u root -p }}}
    1111  * <enter your mysql root password>
    12   * {{{ create database my_wiki }}}
     12  * {{{ create database my_wiki; }}}
    1313  * {{{ quit }}}
    1414 * {{{ mysql -u root -p my_wiki < /usr/share/mediawiki/maintenance/tables.sql }}}
     15
     16Finally, create the file /etc/mediawiki/LocalSettings.php with the following contents. make sure to properly replace the <mysql_password> with your own.
     17{{{
     18<?php
     19$wgUseTeX = true;
     20$wgDBuser = 'root';
     21$wgDBpassword = '<mysql_password>';
     22?>
    1523
    1624= Post Install, FAI CD =
     
    2634 * regenerate the SSH keys.
    2735
    28 = Installing 1.25.1 =
    29  * sudo apt-get install devscripts dpkg-dev
    30  * sudo apt-get install dh-buildinfo ocaml-nox xsltproc docbook-xml docbook-xsl
     36= Building and installing Mediawiki 1.25.1 =
     37First, lets install dependencies for building mediawiki, followed by one dependency that is new to 1.25.1.
     38 * sudo apt-get install devscripts dpkg-dev dh-buildinfo ocaml-nox xsltproc docbook-xml docbook-xsl
    3139 * sudo apt-get install php5-curl
     40
     41Next, lets grab the newest mediawiki, extract it, and place our debian/ directory inside, so we can build it.
    3242 * wget http://releases.wikimedia.org/mediawiki/1.25/mediawiki-1.25.1.tar.gz
    3343 * wget faikvm.com/mediawiki-debian.tar.gz
     
    3646 * cd mediawiki-1.25.1
    3747 * tar -xvzf ../mediawiki-debian.tar.gz
     48
     49Now, run debuild to create .deb files.
    3850 * debuild
     51
     52Congratulations! If all has gone well, you now have MediaWiki .deb files. Change to the previous directory and install them.
     53Note that we're going to remove mediawiki-extensions-base, to avoid a conflict.
    3954 * cd ..
     55 * sudo apt-get remove mediawiki-extensions-base
    4056 * sudo dpkg -i mediawiki_1.25.1-0.1_all.deb
    4157 * sudo dpkg -i mediawiki-classes_1.25.1-0.1_all.deb
     58
     59
     60== Reset the Database, Debian 8 ==
     61
     62Next, re-create and re-populate our mysql database:
     63 * {{{ mysql -u root -p }}}
     64  * <enter your mysql root password>
     65  * {{{ drop database my_wiki; }}}
     66  * {{{ create database my_wiki; }}}
     67  * {{{ quit }}}
     68 * {{{ mysql -u root -p my_wiki < /usr/share/mediawiki/maintenance/tables.sql }}}
     69
     70== Reset the Database, FAI CD ==
    4271 * mysql -u root -p
    4372  * DROP DATABASE my_wiki;
     
    4675
    4776== Enabling the Vector skin ==
    48  * as root, add {{{wfLoadSkin( 'Vector');}}} to /etc/mediawiki/LocalSettings.php .
     77 * as root, add {{{wfLoadSkin( 'Vector');}}} to /etc/mediawiki/LocalSettings.php, as a new line between the {{{<?php}}} and {{{?>}}}.
    4978
    5079== Bugs ==
     
    6089 * cd /var/lib/mediawiki/extensions
    6190 * sudo git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/UniversalLanguageSelector.git
    62  * as root, add {{{require_once "$IP/extensions/UniversalLanguageSelector/UniversalLanguageSelector.php";}}} before the {{{?>}}} in /etc/mediawiki/LocalSettings.php
     91 * as root, add {{{require_once "$IP/extensions/UniversalLanguageSelector/UniversalLanguageSelector.php";}}} between the {{{<?php}}} and the {{{?>}}} in /etc/mediawiki/LocalSettings.php
    6392 * cd ~
    6493