Changes between Initial Version and Version 1 of Mediawiki


Ignore:
Timestamp:
11/27/08 21:29:45 (16 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Mediawiki

    v1 v1  
     1= Mediawiki =
     2
     3Install
     4{{{
     5echo www-apps/mediawiki mysql vhosts imagemagick >> /etc/portage/package.use
     6emerge -v mediawiki
     7}}}
     8
     9Install in vhost
     10{{{
     11webapp-config -I -h  rp.thinkthinkdo.com -d mediawiki mediawiki 1.11.2
     12}}}
     13
     14webapp-config displays the following post-installation instructions (TO BE DONE!!!)
     15{{{
     16=================================================================
     17POST-INSTALL INSTRUCTIONS
     18=================================================================
     19
     201. Completing setup:
     21
     22To complete installation cd into the MediaWiki install location, but
     23make sure to start mysql first.
     24
     25$ /etc/init.d/mysql start
     26$ cd /var/www/rp.thinkthinkdo.com/web/mediawiki
     27
     28Then temporarily make the MediaWiki /config directory writable
     29to the user the web server is running as. The quickest way is
     30to make the directory world writable. For example:
     31
     32$ chmod a+w config
     33 
     34Then access it via a web browser, for example:
     35
     36lynx http://rp.thinkthinkdo.commediawiki/config/
     37 
     382. After setup move the newly created LocalSettings.php from the config/
     39directory to the main mediawiki directory, for example:
     40 
     41$ mv config/LocalSettings.php .
     42
     43Remember to restore safe permissions to the MediaWiki config/ and
     44LocalSettings.php (which contains clear-text passwords).
     45
     46$ chmod a-w config
     47$ chmod ug=r,o=  LocalSettings.php
     48$ chown root:apache LocalSettings.php
     49
     50After these steps MediaWiki should be accesable at
     51http://rp.thinkthinkdo.commediawiki/
     52 
     533. Enabling Optional Features:
     54
     55If you wish to enable image uploads then you must manually edit the
     56LocalSettings.php file to uncomment the $wgEnableUploads line. 
     57If MediaWiki was built with the imagemagick USE-flag the directory
     58permissions are correct, otherwise you must install ImageMagick and
     59also adjust permissions on the images directory to allow the server
     60to write. For example:
     61 
     62$ chown apache:apache /var/www/rp.thinkthinkdo.com/web/mediawiki/images
     63
     64Math Support:
     65
     66If you wish to enable the math support then you must manually edit"
     67the LocalSettings.php file to uncomment the $wgUseTeX line.
     68MediaWiki must have been built with the math USE-flag enabled or the
     69necessary support executable will not be present.
     70You may also have to execute
     71
     72$ texconfig dvips printcmd -
     73
     74if you have not configured tetex before.
     75
     76
     774. Things you need to have on the server:
     78
     79- SQL database of your choice and support for that database compiled in PHP
     80We check for required PHP features for mysql and postgres use flags in the ebuild;
     81you are on your own if you are using a different kind of DB backend.
     82- dev-php/PEAR-Mail is needed for using external smtp server.
     83
     84These are not installed as dependencies since it is possible to run the database
     85and other services on other machines.
     86
     87It is very important that you follow all the major versions upgrade instructions
     88from the mediawiki.org web page - http://www.mediawiki.org/wiki/Manual:Upgrading
     89
     90Do not, I repeat, do not assume that we can upgrade from version to version just
     91like this. Make backups before upgrading.
     92
     93=================================================================
     94}}}
     95