http://www.mediawiki.org/
Now I am going to install MediaWiki on my personal server. To install MediaWiki you will need a LAMP stack = Linux, Apache, MySQL, PHP. Possibly ssh connection.
Step 1
First head over to
http://releases.wikimedia.org/mediawiki/
Find the latest version available and copy its address. Currently the newest version is 1.24. http://releases.wikimedia.org/mediawiki//1.24/mediawiki-1.24.1.tar.gz
Copy that address and then head over to your user public_html folder. Use commands wget to download and tar to untar the file:
$ wget http://releases.wikimedia.org/mediawiki//1.24/mediawiki-1.24.1.tar.gz
$ tar xvfz mediawiki-1.24.1.tar.gz
You may need to restart your apache
$ sudo service apache2 restart
Step 2
Create MySQL table and user.$ mysql -u root -p
$ create database my_wiki;
$ grant index, create, select, insert, update, delete, alter, lock tables on my_wiki.* to 'wikiuser'@'localhost' identified by 'password';
$ flush privileges;
$ exit;
step 3
head over to your MediaWiki site www.yoursite.com/~username/mediawiki-1.24.1
Click install and insert all things asked.
When your install is finished MediaWiki will automatically download LocalSettings.php file. Upload this file to the root of your MediaWiki installation.
Step 4 Enjoy your MediaWiki site
Step 5 Images / Uploads
To allow image uploads to your mediawiki site you need to edit LocalSettings.php file and give chmod 777 to images folder.
$nano LocalSettings.php
Set line $weEnableUploads = true;
$ chmod 777 images/
Ei kommentteja:
Lähetä kommentti