Ubuntu 14.04
Sponsored Link

Install MediaWiki
Install Wiki System MediaWiki.
[3] Create a database for MediaWiki.
mysql -u root -p

Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 5.5.44-MariaDB MariaDB Server

Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

# create "mediawiki" databse (set any password for "password" section)

MariaDB [(none)]>
create database mediawiki;

Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]>
grant all privileges on mediawiki.* to mediawiki@'localhost' identified by 'password';

Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]>
flush privileges;

Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]>

[4] Install MediaWiki.
( Make sure and Download the latest one ⇒ https://www.mediawiki.org/wiki/Download/en )
apt-get -y install php5-mysqlnd
curl -O https://releases.wikimedia.org/mediawiki/1.26/mediawiki-1.26.2.tar.gz

tar zxvf mediawiki-1.26.2.tar.gz

mv mediawiki-1.26.2 /var/www/html/mediawiki

chown -R www-data. /var/www/html/mediawiki

/etc/init.d/apache2 restart

* Restarting web server apache2
[5] Access to "http://(server's hostname or IP address)/mediawiki/mw-config/" and configure final settings.
[6] Scroll down to the bottom of the page and Click "Continue".
[7] Input Database infomation for MediaWiki to connect.
[8] It's OK with default.
[9] Set Wiki name and admin username.
[10] Click "Continue".
[11] Click "Continue".
[12] Setting up completed. Download "LocalSettings.php" and place it under "mediawiki" directory on your server.
[13] This is the index page of MediaWiki. Try to use it.
Matched Content