Cacti Installation - Incorrectly chose Apache, no web page displaying

I am very new to Linux, so this may be an obvious solution ... just not to me:)

I am running Ubuntu 10.04 LTS with Nagios 3.2.2 installed and working properly.
I attempted to install Cacti 0.8.7, but, made an incorrect choice (I believe) on the web server option.

I selected Apache rather than the correct Apache2, which is installed on our computer.

I attempted install with the instructions from this site:

And I attempted uninstall with these instructions:
apt-get remove --purge cacti
apt-get autoremove --purge
apt-get clean

Followed by a reboot (Windows habit!) and an attempted reinstall.
The reinstall did not present the 'Configuring libphp-adodb option' questions etc.

On the uninstall I did read this message:
" /etc/init.d/apache not found"

I have navigated my way around the file system folders some, but, honestly feel like I'm bumping into things in the dark.  Anyone able to shed some simple instructions light for me?


Who is Participating?
Stefan SchnyderConnect With a Mentor DevOps EngineerCommented:
Hey pridenetadmin

I've got a very easy way for you to install cacti. Since a lot of distributions also have cacti in their repositories you should take advantage of that. For your cacti to work properly you need the 'cacti' package itself and its dependencies (for example apache2).

The cacti version in the Ubuntu 10.04 repos is 0.8.7e. The newest version though is 0.8.7g. So you should install the cacti package from source.
Another package which you should install from source is rrd. The best version to work with cacti is 1.2.27.

To get all needed dependencies do the followning:
* Open a terminal window and login as root (sudo so -)
* apt-get update && apt-get install cacti (do NOT selcet 'yes' and start the installation)
* What you see now is the complete list of all packages needed for the cacti installation. Copy the list of packages to a text editor, delte the 'cacti' and the 'rrdtool' entry and make the whole list one line.
* Use the package list now to install all dependencies: apt get install 'copy & paste the line here'

With that, you've got all dependencies needed for cacti to work. Now:
* Download rrd 1.1.27 from and install it, following the instructions
* Download cacti from (the tar.gz archive) and install it, following the instructions
* Create an apache2 virtual host to point the webserver to your cacti folder (see attached code - edit paths for you installation)
* Open a browser on that machine and and got to

Try that and tell me your results. Good luck.


<VirtualHost *:80>
        ServerAlias cacti
        DocumentRoot /var/www/cacti/
        <Directory />
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all

        ErrorLog /var/log/apache2/cacti-error.log
        LogLevel warn
        CustomLog /var/log/apache2/cacti-access.log combined


Open in new window

pridenetadminAuthor Commented:
I was able to uninstall and then reinstall upon trying once again.  I didn't specifically use all of these steps, but, this is a very thorough instruction set with links, so that works for me.  Thanks for the input.
pridenetadminAuthor Commented:
Solution provided is complete.
Stefan SchnyderDevOps EngineerCommented:
I'm glad you could achieve your goal. Have fun :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.