Manual:Running MediaWiki on Mandriva

Quick Installation on Mandrake 10 Official

This is a short description and protocol of my installation.

Installed Packages

 * apache2-2.0.48-6.2.100
 * apache2-mod-php-2.0.48_4.3.4-1
 * php-mysql-4.3.4-1
 * php-iconv-4.3.4-1
 * php-apc-4.3.4_2.0
 * mySQL 4.0.18-1.1.100
 * ImageMagick 5.5.7.15-6plf
 * zlib should be already installed

Download mediawiki-x.x.tar.gz and extract to /var/www/html/wiki

MySQL
If you don't have configured the mysql database, you should at least set the passwords.

New installation
Setting password for default accounts.

>mysql -u root

SET PASSWORD FOR '' @'localhost' = PASSWORD('xxx') SET PASSWORD FOR '' @'hostname' = PASSWORD('xxx') SET PASSWORD FOR 'root'@'localhost' = PASSWORD('xxx') SET PASSWORD FOR 'root'@'hostname' = PASSWORD('xxx')

Replace hostname with your REAL name and xxx with your password.

For information on accounts, type: SELECT host, user from mysql.user

Create Database
CREATE DATABASE wikidb GRANT ALL PRIVILEGES ON wikidb to 'wikiuser'@'localhost' IDENTIFIED BY 'your_password' WITH GRANT OPTION; Replace your_password with your own password. Maybe less privileges can be granted, but I didn't find any documentation concerning this.

For a list of databases SHOW DATABASES

LocalSettings.php will be created in this directory and therefore write rights are necessary. chmod ugo+w /var/www/html/wiki/config

Browse to http://localhost/wiki/config/index.php and fill in all necessary information. Copy the result. cp /var/www/html/wiki/config/LocalSettings.php /var/www/html/wiki Remove all right from config directory. chmod 000 /var/www/html/wiki/config

Browse to your wiki http://localhost/wiki/index.php. Create your own user. Afterwards grant admin rights to your user with Replace "own_user" with your username created on the wiki site:

UPDATE user set user_right = 'sysop' where user_name= 'own_user'

Enable Upload
Add write right to the images directory: chmod ugo+w /var/www/html/wiki/images

In /var/www/html/wiki/LocalSettings.php uncomment $wgDisableUploads= false;