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.

No comments :