need to have Apache, mysql, and php
#install php and mysql through yum
yum install httpd php php-mysql php-gd mysql-server mysql
#get the mediawiki download
cd /tools
wget http://download.wikimedia.org/mediawiki/1.17/mediawiki-1.17.0.tar.gz
#install mediawiki
tar xvzf mediawiki-1.17.0.tar.gz
ln -s mediawiki-1.17.0/ mediawiki
#Put in a virtual host: for our environment
<VirtualHost 0.0.0.0:80>
ServerName staff.candidagenome.org
ServerAdmin sysadmin@genome.stanford.edu
DocumentRoot /share/hypha/www-data_wiki/html
DirectoryIndex index.html index.html.var index.shtml index.php
<Directory /share/hypha/www-data_wiki/html>
Options FollowSymLinks Includes Multiviews
AllowOverride Limit AuthConfig Options
AddOutputFilter Includes .shtml
AddType text/html .shtml
AddHandler server-parsed .shtml
Order Allow,Deny
Allow from all
<Directory>
ScriptAlias /cgi-bin/ /share/hypha/www-data_wiki/cgi-bin/
<Directory /share/hypha/www-data_wiki/cgi-bin>
Options None
AllowOverride None
Order Allow,Deny
Allow from all
<Directory>
Alias /icons/ /share/hypha/www-data_wiki/icons/
CustomLog /share/hypha/www-data_wiki/logs/access_log.hypha combined
ErrorLog /share/hypha/www-data_wiki/logs/error_log.hypha
Alias /error/ /share/hypha/www-data_wiki/error/
<Directory /share/hypha/www-data_wiki/error>
Options IncludesNoExec
AllowOverride None
AddOutputFilter Includes html
AddHandler type-map var
Order Allow,Deny
Allow from all
LanguagePriority en es de fr
ForceLanguagePriority Prefer Fallback
<Directory>
<VirtualHost>
#must add the following into the config or it won't see Virtual hosts:
NameVirtualHost 0.0.0.0:80
#need to add the PHP module
LoadModule php5_module modules/libphp5.so
#this is also in the /usr/local/etc/httpd/conf.d/php.conf
#add the handler type for php
AddType application/x-httpd-php .php .phtml
Database type: MySQL
Database host: localhost:/db0/mysql/admin/wiki/mysql.sock
Database name: staff
DB username: cgdadmin
DB password: xxxxx
Database table prefix: (can be used for more than one wiki)
Database charset: Backwards-compatible UTF-8
Superuser account: root
Superuser password: xxxxxx
Then it asks for a wiki name, like cgdstaffwiki or the like
Also need an account, root and passwd, with email sysadmin and
it will ask for account creation or not
leave default no license button
then it will build and download a new LocalSettings.php for the server, copy that
into the /share/hypha/www-data-wiki/html area.
then click on the wiki link provided in the configurationpage.
And voila! it should come up.