Showing posts with label mediawiki. Show all posts
Showing posts with label mediawiki. Show all posts

Tuesday, October 26, 2010

Installing LAMP, Mediawiki in Ubuntu

Install LAMP
sudo apt-get install tasksel

sudo tasksel

And select LAMP Server

During the installation you will be asked to insert the mysql root password. Make sure you record your MySQL root superuser name and superuser password that you will create at installation. You will need it later.
(Each of the components (Apache2, MySQL5, and PHP) can also be installed individually, if you wish.)

To full manage your lamp Server database, install phpmyadmin
sudo apt-get install phpmyadmin

Please choose the web server that should be automatically configured to run phpMyAdmin.
Web server to reconfigure automatically: [ ] apache2

To login to phpmyadmin, open browser and type :
http://ip/phpmyadmin or http://localhost/phpmyadmin

Install MediaWiki
Install the package:
sudo apt-get install mediawiki

Optionally install add-ons:
sudo apt-get install imagemagick mediawiki-math php5-gd

Enable MediaWiki by editing the following file and remove the '#' from the third line so that it reads 'Alias /mediawiki /var/lib/mediawiki':
sudo nano /etc/mediawiki/apache.conf

Then restart apache:
sudo /etc/init.d/apache2 restart

Start your MediaWiki
http://localhost/mediawiki
Follow the setup instructions.

Monday, September 27, 2010

Mediawiki

Follow these instructions to install Mediawiki in Ubuntu system.

To important folders where you will be updating certain files are:

  • \var\lib\mediawiki
  • \etc\mediawiki
Including many other useful scripts, to export and import XML dump, there are scripts (dumpBackup.php, importDump.php) available in the (\var\lib\mediawiki\maintenance) folder.

To export my own mediawiki, I used following command, which creates dump.xml file in temp folder that contains only current pages of the wiki. To backup everything, you can use --full instead. More detail instruction are available here.

php dumpBackup.php --current >/tmp/dump.xml