MediaWiki installation

At this article we will see how to install MediaWiki over a LAMP server, in my server, over Debian Etch.

MediaWiki is a software to mount wikis, PHP developed. A wiki is a collaborative web site hich can be edited by some people at same time. My interests is due to manage my documentation and index it efficiently. Concrete, writing the big texts, the little ones serve this blog.

At the beginning, and as usually, I leave, as usually, my reference table:

Package mediawiki-1.11.1.tar.gz
Documentation Instalation:
Files Configuration: LocalSettings.php

Unzip the package, move the directory to the web root and give permissions to the apache user:

tar -zxvf mediawiki-1.11.1.tar.gz
cp -r mediawiki-1.11.1 /var/www/wiki
chown -R www-data:www-data /var/www/wiki

Then we will create the database and the administrator user:

elite:/var/www# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or g.
Your MySQL connection id is 12022
Server version: 5.0.32-Debian_7etch1-log Debian etch distributionType 'help;' or 'h' for help. Type 'c' to clear the buffer.
mysql> create database wiki;
Query OK, 1 row affected (0.00 sec)
mysql> grant all on wiki.* to 'wikiadmin'@'localhost' identified by 'contraseña-super-segura';
Query OK, 0 rows affected (0.06 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.03 sec)
mysql> quit

Finally we will install by browser: http://mydomain/wiki

  • Site name:
  • Language: ES
  • Admin user: admin/password
  • DB user: wikiadmin/pasword

Generate the configuration file and move it to root directory, then delete the config directry to save the security of your site:

mv config/LocalSettings.php .
rm -r config/

We can access to our wiki from the URL:

Leave a Reply

Your email address will not be published. Required fields are marked *