Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to use Cacti, but I'm not entirely sure how to install it.

I have a 10.04 Server that I'm installing this on.

share|improve this question
up vote 14 down vote accepted

This has been tested on 10.04 and 12.04 LTS.

It's as simple as installing the cacti package.

To do that, run sudo apt-get install cacti and then follow the prompts. It will ask you to set a password for the root MySQL user.

Install via the software center

However, one thing that catches people is that it gives you a choice of which HTTP server you want to have it run under.

enter image description here

Unless you have good reason to do otherwise, select "Apache2" and hit enter.

Now it will go and install all the packages.

When it asks you if you want to have the database configured with dbconfig-common, select yes.

enter image description here

And then it will ask you for the password of the root user.

And then it will ask you to set a MySQL application password specifically for cacti.

Enter one in, and then repeat it in the confirmation dialog.

Once the install is done, head over to your-ip/cacti follow the prompts there.

enter image description here

Click next if you agree to the license.

Now you need to tell it what kind of installation - we're assuming you're doing a new install here, so just click "Next".

enter image description here

Now here is the important part.

It will try and find all the various tools it needs - by default, they should be all green, but if it isn't, you'll need to do some digging to find where that tool is.

enter image description here

Click next.

Now you're at the login screen. The default username is admin, and the default password is admin as well.

enter image description here

Now it will have a forced password change. Change your password to whatever you want it to be.

enter image description here

Hit next after that, and you're in!

enter image description here

Have fun with Cacti!

share|improve this answer
I have provided some additional information on upgrading to cacti version 0.8.8.a, which supports the Cacti Plugin architecture(PIA) here – Kevin Bowen Dec 1 '12 at 4:14
Thanks - followed this, script runs ok, but nothing seems to get installed under /var/www - any ideas? – UpTheCreek Feb 7 '13 at 16:51
@UpTheCreek it isn't installed under /var/www. it's installed in its own special place, I'm not entirely sure where. – James Feb 7 '13 at 17:53
Ah I see - I guess there must be something in apache config - I'll check, thanks. – UpTheCreek Feb 7 '13 at 18:19
apache auto configuration creates a symlink in /etc/apache2/conf.d to /etc/cacti/apache.conf (similar to how phpmyadmin does it) which is where you can find information about the cacti file locations - although you may be doing something wrong if you think you need to start editing these files ;) – cwd Apr 22 '14 at 18:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.