Cacti Installation

Dependencies

Cacti requires:

Installation Instructions

  1. Extract the distribution tarball.

    shell> tar xzvf cacti-version.tar.gz


  2. Create the MySQL database:

    shell> mysqladmin --user=root create cacti


  3. Import the default cacti database:

    shell> mysql cacti < cacti.sql


  4. Optional: Create a MySQL username and password for cacti.

    shell> mysql --user=root mysql
    mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword';
    mysql> flush privileges;


  5. Edit include/config.php.

  6. Set the appropriate permissions on cacti's directories for graph/log generation. You should execute these commands from inside cacti's directory to change the permissions.

    shell> chown cactiuser rra/ log/


    (Enter a valid username for cactiuser, this user will also be used in the next step for data gathering.)

  7. Add a line to your /etc/crontab file similar to:

    */5 * * * * cactiuser php /var/www/html/cacti/cmd.php > /dev/null 2>&1

  8. Point your web browser to:

    http://your-server/cacti/

    Log in the with a username/password of admin. You will be required to change this password immediatly. Make sure to fill in all of the path variables carefully and correctly on the following screen.