Mediawiki Install FC6

From Aktivix
Revision as of 23:41, 19 January 2007 by Chris (Talk | contribs)

Jump to: navigation, search

See also MediaWiki_Install

Fedora Core six has packaged mediawiki, so:

 yum install mediawiki mysql-server php-eaccelerator
 chkconfig mysqld on
 chkconfig httpd on
 service mysqld start
 service httpd start
 mysqladmin -u root password 'new-password'

Then, following the wiki farm notes

 elinks http://localhost/mediawiki/config/index.php

The fill in the following values (the rest can be the defaults):

Wiki name:             TestWiki1
Contact e-mail:
Admin username:        WikiSysop
Password:              *****
Password cobfirm:      *****
Shared memory caching: 
  * (X) eAccelerator
Database name:         testwiki1
DB username:           testwiki1user
DB password:           *****
DB password confirm:   *****
Superuser account:     root
Superuser password:    *****

Create a MySQL account for AdminSettings.php:

 mysql -uroot -p mysql
 mysql> GRANT ALL PRIVILEGES ON *.* TO 'wikiadmin'@'localhost'
 Query OK, 0 rows affected (0.00 sec)

And move the sample file and then add the password to it:

  cd /var/www/mediawiki
  mv AdminSettings.sample AdminSettings.php


cd /var/www/mediawiki
mv config/LocalSettings.php LocalSettings_testwiki1.php

And create the following new /var/www/mediawiki/LocalSettings.php (this is taken from wiki farm):

$callingurl = strtolower($_SERVER['SERVER_NAME']);

$pos = strpos( $callingurl, 'testwiki1'); //e.g.
if ( $pos === false ) {
        require_once( 'LocalSettings_testwiki1.php' );
        require_once( 'LocalSettings_testwiki2.php' );