- RRDTool;
- NET-SNMP;
- MySQL;
- PHP;
- Apache;
Apache
Open a terminal and follow the next steps:
- sudo apt-get install apache2
PHP
Now that your web server is ready, we will install PHP. Open a terminal and follow the next steps:
- sudo apt-get install php5 libapache2-mod-php5
- sudo /etc/init.d/apache2 restart
- sudo gedit
- write the following PHP code:
- <?php phpinfo();?>
- save file as info.php in /var/www folder
- open your favorite browser and type http://localhost/info.php.
Enter the following command:
- sudo apt-get install mysql-server-5.0 php5-mysql
- type your password (e.g.: root)
- sudo /etc/init.d/apache2 restart
- open http://localhost/info.php in your favorite browser and check MySQL module.
Net-SNMP
Open terminal and type the following commands:
- sudo apt-get install snmp php5-snmp
- sudo /etc/init.d/apache2 restart
- Open http://localhost/info.php in your favorite browser and check SNMP module
RRDTool is available in the Debian repository, so you can install it through APT. Type in your terminal
- sudo apt-get install rrdtool
Before continuing, be sure that you got no error previously. You are in the last step of installing Cacti.
- sudo apt-get install cacti
- select option 'apache2'
- type your password of the database's administrative user (e.g.: root)
- type your MySQL application password for cacti and retype in password confirmation (e.g.: root)
- To complete the configuration process, open http://localhost/cacti in your favorite browser.
In the installation type page, you can select if it's new install or an upgrade. As we are going to install it for the first time, we will select New Install (which is selected by default) and click Next. The path settings page automatically determines the installed paths for RRDTool, PHP, SNMP and Cacti.log as well as the versions for Net-SNMP and RRDTool and then click Next.
In login screen, the username is admin and the default password is admin. After a successful login for the first time, the system will ask you to set a new password. Enter a new password and ensure you remember it. Without this password, you cannot administer the system!
No comments:
Post a Comment