Bioinformatics.Org Wiki:Configuration
From Bioinformatics.Org Wiki
Details of wiki configuration the Bioinformatics.Org Wiki:wikiadmin group: (join us!)
To see the current MW version and the list of installed extensions, see Special:Version.
Contents |
Install
The MediaWiki is installed under:
-
/httpdroot/mediawiki
Under that location there are four important directories:
-
/httpdroot/mediawiki/mediawiki-current.ver
- The directory containing the current version of MediaWiki.
-
/httpdroot/mediawiki/w
- A symbolic link to the current version.
-
/httpdroot/mediawiki/images
- The overall (version independent) images directory. A symbolic link to this directory is put under
/httpdroot/mediawiki/mediawiki-current.ver
. -
/httpdroot/mediawiki/extensions
- The overall (version independent) extensions directory. A symbolic link to this directory is put under
/httpdroot/mediawiki/mediawiki-current.ver
.
Apache configuration
The location of the the Apache configuration files can be a bit confusing at first, but once you get to the bottom of it, it seems to make sense.
CONFIGURATION FILES:
/home/local/apache/conf/
Note:
/usr/local -> /home/local i.e. /usr/local/apache/conf/ ... IS EQUIVALENT TO ... /home/local/apache/conf/
And:
/etc/httpd -> /usr/local/apache i.e. /etc/httpd/conf/ ... IS EQUIVALENT TO ... /usr/local/apache/conf/ ... IS EQUIVALENT TO ... /home/local/apache/conf/
Additionally:
/httpdconfroot -> /home/local/apache/conf
CONFIGURATION LOAD ORDER:
httpd.conf Include "/usr/local/apache/conf/includes/pre_main_global.conf" Include "/usr/local/apache/conf/includes/pre_main_2.conf conf header stuff Include "/usr/local/apache/conf/php.conf" Include "/usr/local/apache/conf/includes/errordocument.conf" more conf header stuff Include "/usr/local/apache/conf/includes/pre_virtualhost_global.conf" Include "/usr/local/apache/conf/includes/pre_virtualhost_2.conf" some vhost stuff Include "/usr/local/apache/conf/includes/post_virtualhost_global.conf" Include "/usr/local/apache/conf/includes/post_virtualhost_2.conf"
Random notes:
/home/www -> /httpdroot /httpdroot -> /home/httpd
LOGS:
/var/log/httpd -> /etc/httpd/logs /etc/httpd -> /usr/local/apache /usr/local -> /home/local
File permissions
The webserver (httpd) runs as user nobody (group nobody). Is that user in any other groups?
I'm trying to change all the permissions to the new 'wikiadmin' group, but I'm not entirely sure how to do it 'properly'.
MySQL stuff
The database is called 'mediawiki' and the wiki table prefix is 'mw_'.
We should create two users with privileges only for that database.
- A read only user for queries.
- A read/write user for the wiki in general.
Raw configuration file
See: Bioinformatics.Org Wiki:Configuration/AdditionalSettings.php
Extensions
For any of the installed extensions that have tagged releases [1], the latest release has been installed (Saturday, 17 July 2010). To track releases, see [2].
To update an extension to a new release, you need a command like:
# check the current version svn info Validator # update to the latest release cd Validator svn switch http://svn.wikimedia.org/svnroot/mediawiki/tags/extensions/Validator/REL_0_3_4/
Most extensions (including the above set) have stable versions in the trunk MW SVN repository [3], and are coded so as to be compatible with any recent version of MW. For this reason, and for convenience, I tend to keep extensions up to date with the following commands:
Step 1, get the extension:
http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/MyExtn
Step 2, update it:
cd MyExtn; svn update; cd ../
Step 3, TEST THE WIKI!
Soon there should be a nice extension manager for MW :-)
Bleating edge
As a test, I'm looking at the MW 1.16 branch:
svn checkout http://svn.wikimedia.org/svnroot/mediawiki/branches/REL1_16/phase3 ./mediawiki-1.16.x