Difference between revisions of "Mediawiki Install FC6"

From Aktivix
Jump to: navigation, search
Line 46: Line 46:
 
  cd /var/www/mediawiki
 
  cd /var/www/mediawiki
 
  mv config/LocalSettings.php LocalSettings_testwiki1.php
 
  mv config/LocalSettings.php LocalSettings_testwiki1.php
 +
chown root.root LocalSettings_testwiki1.php
 +
chmod 644 LocalSettings_testwiki1.php
  
 
And create the following new /var/www/mediawiki/LocalSettings.php (this is taken from [http://www.mediawiki.org/wiki/Wiki_farm wiki farm]):
 
And create the following new /var/www/mediawiki/LocalSettings.php (this is taken from [http://www.mediawiki.org/wiki/Wiki_farm wiki farm]):

Revision as of 00:50, 20 January 2007

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:	mediawiki@aktivix.org
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'
   -> IDENTIFIED BY '****' WITH GRANT OPTION;
 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

Then

cd /var/www/mediawiki
mv config/LocalSettings.php LocalSettings_testwiki1.php
chown root.root LocalSettings_testwiki1.php 
chmod 644 LocalSettings_testwiki1.php 

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


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

$pos = strpos( $callingurl, 'testwiki1'); //e.g. www.domain1.com
 
if ( $pos === false ) {
        require_once( 'LocalSettings_testwiki1.php' );
}
?>