Backup the old Cacti database.
shell> mysqldump cacti > mysql.cacti
Backup the old Cacti directory.
shell> mv cacti cacti_old
Extract the distribution tarball.
shell> tar xzvf cacti-version.tar.gz
Rename the new Cacti directory to match the old one.
shell> mv cacti-version cacti
Edit include/config.php and specify the MySQL user, password and database for your Cacti configuration.
$database_default = "cacti"; $database_hostname = "localhost"; $database_username = "cactiuser"; $database_password = "cacti";
Copy the *.rrd files from the old cacti directory.
shell> cp cacti_old/rra/* cacti/rra/
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 -R cactiuser rra/ log/
(Enter a valid username for cactiuser, this user will also be used in the next step for data gathering.)
Point your web browser to:
http://your-server/cacti/
Follow the on-screen instructions so your database can be updated to the new version.