Cacti Installation For CentOS

Installation Prerequisites rrdtool, apache, mysql, cron & gcc
yum -y install mysql-server php php-cli php-mysql net-snmp-utils rrdtool \ php-snmp gcc mysql-devel net-snmp-devel autoconf automake libtool dos2unix

Enabling Chkconfig
chkconfig httpd on
chkconfig mysqld on

Cacti Files
cd /var/www/html

Downloading Cacti File

Untar Cacti
tar -xzvf cacti-0.8.8b.tar.gz

ln -s cacti-0.8.8b cacti

Cron & File Permissions
adduser cacti
echo “*/5 * * * * cacti php /var/www/html/cacti/poller.php &>/dev/null” >> /etc/cron.d/cacti
cd /var/www/html/cacti
chown -R cacti.apache rra log
chmod 775 rra log

Download Cacti Patch File
patch -p1 -N < security.patch

Cacti Database
mysqladmin -u root -p create cacti
mysql -p cacti < /var/www/html/cacti/cacti.sql
mysql -u root -p
mysql > GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY ‘cacti’;
mysql > flush privileges;
mysql > exit

Setting Database Credentials for Cacti config file
cd /var/www/html/cacti/include/
vim config.php

Checking Database Details
$database_type = “mysql”;
$database_default = “cacti”;
$database_hostname = “localhost”;
$database_username = “cactiuser”;
$database_password = “MyV3ryStr0ngPassword”;
$database_port = “3306”;
$database_ssl = false;

URL Path for Cacti in Config File
$url_path = “/cacti/”;

Installation is Completed
Please Check the Cacti http://IP-Address/cacti

Click on Next


Please Select New Install
Click Next


Check Following Paths
Click Finish


Default Password is admin
After that Change to New Password


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s