Thursday, January 13, 2011

How to install LAMP and Cacti on Ubuntu 10.10 - few easy steps!

This tutorial will show you how to install Cacti on Ubuntu 10.10 workstation. This tutorial assumes you know how to install Ubuntu 10.10. If you have never installed it, it is really easy, just download the .ISO file, from Ubuntu.com, burn it to CD, boot the PC and follow the installation.
LAMP and Cacti on Ubuntu 10.10
1.       After installing Ubuntu Workstation 10.10 do the following:
2.       Go to the terminal and install tasksel (debian installation software)
                sudo apt-get install tasksel
3.       install LAMP, type the taskel command in terminal
4.       sudo tasksel
5.       Select LAMP Server and click Ok


6.       During the installation  you  will be  asked  to insert the  mysql root  password

7.       After the LAMP installation type the following command:
8.       sudo apt-get install php5 php5-gd php5-mysql
9.       Now, you will start installing cacti, type the following command:
10.   sudo apt-get install cacti-spine
11.   This will start installing cacti and prompt for some questions.

12.   Configuring libphp-adodb option select Ok Enter to Continue.
13.   Select your webserver in this example we are using apache2 select Ok Enter to Continue
14.   Configure database for cacti select Yes Enter to Continue
15.   Enter the root password for your mysql server select Ok Enter to Continue
16.   Enter the password (cacti) for the cacti database,select Ok Enter to Continue

17.   Re-enter your password
18.   This will complete the cacti installation.
19.   At this point you should be able to access cacti by typing http://serverIP/cacti in your browser.
There are plenty of tutorials for Cacti configuration, hopefully I will be able to provide one in the near future. Enjoy!