Changes between Version 19 and Version 20 of AWIKIServer


Ignore:
Timestamp:
08/20/15 17:11:54 (4 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AWIKIServer

    v19 v20  
    1 = Post Install =
    2 After installation, the mysql database still needs to be configured.
     1= Purpose =
     2the awikiserver image is a mediawiki instance, with the visual editor by default everywhere, and ParserFunctions enabled.
     3
     4= Post Install, Debian 8 =
     5First, install mediawiki.
     6 * {{{ sudo apt-get install mediawiki }}}
     7Note that you will be asked to set the mysql root password.
     8
     9Next, create and populate our mysql database:
     10 * {{{ mysql -u root -p }}}
     11  * <enter your mysql root password>
     12  * {{{ create database my_wiki }}}
     13  * {{{ quit }}}
     14 * {{{ mysql -u root -p my_wiki < /usr/share/mediawiki/maintenance/tables.sql }}}
     15
     16= Post Install, FAI CD =
     17After installation with our FAI CD image, the mysql database still needs to be created and populated.
    318 * sudo /root/install_mediawiki.sh
    419  * It will ask you for the mysql root password twice.
     20
    521== Passwords ==
    622 * change the shell password for root.
     
    824 * change the mysql password for root.
    925  * update /etc/mediawiki/LocalSettings.php with the new password.
    10 = Running behind proxies =
    11 
    12 == mod_rpaf ==
    13 
    14 RPAF is responsible for interpreting the 'X-Forwarded-IP' header for apache. This means that IP addresses show up properly in the access.log, and can be used for access control.
    15 It also sets the domain name presented to mediawiki "properly".
    16 
    17  * sudo apt-get install libapache2-mod-rpaf
    18  * edit /etc/apache2/mods-enabled/rpaf.conf as root, and add the ip of EACH of your proxies to the line that starts with {{{RPAFproxy_ips}}}.
    19  * edit /etc/mediawiki/LocalSettings.php as root, and add the line {{{$wgServer=preg_replace('/, .*/','', $wgServer);}}}, in order to make MediaWiki see it's domain properly.
    20 
    21 == MediaWiki ==
    22 
    23  * edit /etc/mediawiki/LocalSettings.php as root. add the following lines:
    24 {{{
    25 $wgUsePrivateIPs = true;
    26 $wgSquidServers = array('172.16.0.1', '10.0.2.51');
    27 }}}
    28 Again, just like the above, make sure to list EACH of your proxy servers.
    29 
    30 == Parsoid ==
    31 
    32  * edit /etc/mediawiki/parsoid/settings.js, and add the following line inside of the function declaration that is the configuration:
    33 {{{
    34 parsoidConfig.setMwApi( 'localhost', { uri: 'http://awiki.faikvm.com/wiki/api.php', proxy: { uri: 'http://localhost/' } } );
    35 }}}
    36  * Make sure to swap out awiki.faikvm.com with the domain name of your wiki.
    37  * restart parsoid: {{{ sudo /etc/init.d/parsoid restart }}}
    38 
    39 == Apache ==
    40 Finally, {{{sudo service apache2 restart}}} to make the above take effect.
     26 * regenerate the SSH keys.
    4127
    4228= Installing 1.25.1 =
     
    138124wfLoadExtension( 'ParserFunctions' );
    139125}}}
     126
     127= Running MediaWiki behind proxies =
     128
     129== mod_rpaf ==
     130
     131RPAF is responsible for interpreting the 'X-Forwarded-IP' header for apache. This means that IP addresses show up properly in the access.log, and can be used for access control.
     132It also sets the domain name presented to mediawiki "properly".
     133
     134 * sudo apt-get install libapache2-mod-rpaf
     135 * edit /etc/apache2/mods-enabled/rpaf.conf as root, and add the ip of EACH of your proxies to the line that starts with {{{RPAFproxy_ips}}}.
     136 * edit /etc/mediawiki/LocalSettings.php as root, and add the line {{{$wgServer=preg_replace('/, .*/','', $wgServer);}}}, in order to make MediaWiki see it's domain properly.
     137
     138== MediaWiki ==
     139
     140 * edit /etc/mediawiki/LocalSettings.php as root. add the following lines:
     141{{{
     142$wgUsePrivateIPs = true;
     143$wgSquidServers = array('172.16.0.1', '10.0.2.51');
     144}}}
     145Again, just like the above, make sure to list EACH of your proxy servers.
     146
     147== Parsoid ==
     148
     149 * edit /etc/mediawiki/parsoid/settings.js, and add the following line inside of the function declaration that is the configuration:
     150{{{
     151parsoidConfig.setMwApi( 'localhost', { uri: 'http://awiki.faikvm.com/wiki/api.php', proxy: { uri: 'http://localhost/' } } );
     152}}}
     153 * Make sure to swap out awiki.faikvm.com with the domain name of your wiki.
     154 * restart parsoid: {{{ sudo /etc/init.d/parsoid restart }}}
     155
     156== Apache ==
     157Finally, {{{sudo service apache2 restart}}} to make the above take effect.
     158
     159
     160