September 20, 2017

Installing Cacti on CentOS 5.5

In this tutorial we will be installing Cacti on CentOS 5.5 using the LCMP stack (Linux, Cherokee, MySQL and PHP).

What is Cacti? Cacti is a complete network, server and application graphing solution harnessing the power of RRDtool OpenSource industry standard, high performance data logging and graphing.

So before we start just some general house keeping. The base CentOS 5.5 server hostname and IP address that we’ll be using in this tutorial:

* (IP

The Cacti server will eventually be available on

The assumption, for this Cacti and CentOS 5.5 tutorial, is that you are running as root and have a medium understanding of the software required or you’re Awesome.

Install the RPMForge i386 YUM Repository

# rpm -Uvh

Install the EPEL i386 YUM Repository

# rpm -Uvh

Install the IUS i386 YUM Repository

# rpm -Uvh

Install Cherokee web server

Install PHP 5.3

Install MySQL and MySQL Server

Install SNMP

Install Cacti

Configure snmpd, move snmpd.conf and create a new one. The ‘snmpuser’ is what you’ll use later in the Cacti interface.

Let make sure that everything is added to runlevels 2, 3, 4 and start them up.

Create ‘cacti’ MySQL database and grant privileges to ‘cactiuser’ with password ‘cactipassword’

Import the Cacti database schema

Configure Cacti with the details above.

Once all that has been done time to get PHP 5.3 working with Cherokee and then adding the Cacti virtual server.

Firstly lets get PHP 5.3 working with Cherokee

Finally add the Cacti virtual server and browser to the URL and follow the onscreen instuctions.

  • Jinus Ariana

    Thanks you! Simple and useful. Please add a Donation Link.

  • Search Engine Optimization

    OK, where is your donation link already! You need to let me buy you a beer at least 🙂
    Thanks for the help dude

  • John

    Great until the end, and I have to spend as much time getting that horrible pluging working to find out how to get the php in and how to add cacti in cherojkee, the plugin just loads as a blank page

  • John

    Luckily I took a snapshot of the server before I did this install, so I can revert, and find some different instructions, I am not sure how you put PHP in Cherokee, or how to add the Cacti virtual server and browser to the URL and follow the onscreen instuctions.

    It would be useful if this was completed as it started without the plugins which just appear as a blank page.

  • Srinivas_0618

    Thank Q… it’s Simple installation and Very useful for those how have multipul host or devices to monitor bandwidth utilization. Network Administrator Srinivas…

  • Andrew

    For “phpinfo.php”:nnn# vi /var/www/cherokee/phpinfo.phpnn

  • Andrew

    For default to be Cacti vServer: u00a0nnI updated “Document Root =/var/www/cacti” inu00a0cherokee-admin.n

  • Kisoonam

    To log in to Cacti does not work with admin / admin.
    Could you let me know how to log in ?