# Here are some notes taken during installation of Cacti on Debian 7, on a Cubieboard 2.
# Install PHP, apache2 and mysql-server first and then install Cacti.
sudo apt-get update
sudo apt-get install apache2
sudo apt-get install mysql-server
# Configure mysql server with root password. For the rest of the questions answer Yes.
sudo mysql_secure_installation
# PHP installation (Before Debian 7 Wheezy add php5-suhosin )
sudo apt-get install php5 php-pear php5-mysql
# Configure PHP installation info from the server by adding the following lines into info.php:
sudo nano /var/www/info.php
<?php
phpinfo();
?>
# Restart Apache to apply the new configuration
sudo service apache2 restart
# Verify that Apache and PHP was installed successfully by entering the following URL
# http://<Ip address of your server>/info.php
# Information regarding the PHP installation is shown in the browser.
# Now it is time to install Cacti
sudo apt-get install cacti
# Remove comment ('//') before $url_path and $cacti_session_name last in debian.php file
sudo vi /etc/cacti/debian.php
# Link Cacti Web server configuration to the apache2 config directory. My Apache version is 2.2
sudo ln -s /etc/cacti/apache.conf /etc/apache2/conf.d/cacti.conf
# Restart Apache to apply the new configuration
sudo service apache2 restart
# Enter the following URL in your browser http://<Ip address of your server>/cacti
# Follow the instructions. The user /password is admin/admin
# After having logged in, the web console is ready for configuration of devices and graphs for your devices.
No comments:
Post a Comment