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.