Installation MediaWiki: Difference between revisions

From ICO wiki
Jump to navigationJump to search
No edit summary
Line 92: Line 92:
- Configure some basic website interface such as language..so forth.
- Configure some basic website interface such as language..so forth.


=== LOCALSETTING.PHP ===
=== Localsetting.php ===


After finish your configuration, it will automatically download the '''Localsetting.php''' to your download directory or you should click to download it manually. Follow those command line.
After finish your configuration, it will automatically download the '''Localsetting.php''' to your download directory or you should click to download it manually. Follow those command line.
Line 110: Line 110:


Refresh the page to see its change.
Refresh the page to see its change.


=== Install skin for wiki  ===
=== Install skin for wiki  ===

Revision as of 14:11, 20 September 2016

Mediawiki installation

Autor: Lauri Vosandi

Mediawiki Download and Requirements

You should install apache2, mysql-server and php by root:

root@kaka:~#apt-get install apache2 mysql-server php

sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql

sudo apt-get install php7.0-mbstring

git clone https://gerrit.wikimedia.org/r/p/mediawiki/vendor.git

service apache2 restart

Download

I recommend you install the newest version for wiki. Followed these command line below:

lauri@kaka: sudo -i

root@kaka: apt install git

root@kaka:~# cd /var/www/html

root@kaka:/var/www/html# rm index.html

root@kaka:/var/www/html# git clone //insert link here.

root@kaka:/var/www/html# ls

If it shows directory "core", keep following:

root@kaka:/var/www/html# cd /core

root@kaka:/var/www/html/core# cp -r * /var/www/html/

Check files from core already copied to main folder of html

root@kaka:/var/www/html/core# ls




Now, try to refresh the page.

Solving Problems

After refreshing the page. It could give you some of error which is normal.

If it shows you this error related to php:

sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql

sudo service apache2 restart

If it shows you this error: "some external libraries that MediaWiki requires are no longer"

you need to install:

lauri@kaka: sudo -i

root@kaka:~# cd /var/www/html

root@kaka:/var/www/html# git clone https://gerrit.wikimedia.org/r/p/mediawiki/vendor.git

root@kaka:/var/www/html# service apache2 restart

if it demands mbstring or something else:

root@kaka:/var/www/html# apt-get install php-mbstring

Installation

Now, refresh the page, if it gives no error, you need to click to install your wiki and configure your page:

Keep following the step what wiki page gives.

- Configure Database where you need to put your root account as well as Administrator account for main page.

- Configure wiki's name in which you will define your wiki page's name

- Configure some basic website interface such as language..so forth.

Localsetting.php

After finish your configuration, it will automatically download the Localsetting.php to your download directory or you should click to download it manually. Follow those command line.

You need to copy Localsetting.php to /html directory

      • NOTE: your user folder is different from mine "lauri"

lauri@kaka: sudo -i

root@kaka:~# cd /home/lauri/Downloads/

root@kaka:/home/lauri/Downloads/# cp -r Localsetthing.php /var/www/html/

Refresh the page to see its change.

Install skin for wiki