Glenn has been working on getting cacti up and running for a while now,
with various difficulties. Yesterday I needed a distraction, so I
thought I would take a shot at it.
Here is what I did:
Environment: I used "webhost", a test-server which already had apache2
installed. For mysql, I used our central sandbox database. I also set
up the website name in our DNS: "cacti.example.com".
On the webhost:
I created /srv/www/vhosts/cacti/{htdocs,logs}
I created /etc/apache2/vhosts.d/cacti.conf:
ServerName cacti.example.com
serveralias cacti
DocumentRoot /srv/www/vhosts/cacti/htdocs
ErrorLog /srv/www/vhosts/cacti/logs/error_log
AllowOverride Fileinfo Indexes
Require all granted
</Directory>
AddDefaultCharset UTF-8
php_value default_charset "UTF-8"
</VirtualHost>
I downloaded the latest tarball from the cacti website and untarred it
into /srv/www/vhosts/cacti/htdocs. This created a directory
called "cacti-0.8.8b" containing the cacti file tree. I moved the tree
into /srv/www/vhosts/cacti/htdocs and removed "cacti-0.8.8b".
On my database host, I did the following:
create new database called "db_cacti". grant access
to "cactiuser@webhost.example.com". Import the database setup from
cacti.sql (from the tarball).
Back on "webhost", I installed some extra php5 modules - gd, snmp,
sockets. Then I amended include/config.php with the database details
and the url_path - because I don't use a "cacti/" directory, I used
url_path="/".
The cacti instructions also say to change ownership of "rra/"
and "log/", which I changed to wwwrun (apache userid). I'm not sure who
will be writing to those directories though.
Finally, I fired up "http://cacti.example.com/install/index.php" in
Firefox. I checked the various values (all in the green), and got
returned to the login screen. Then I logged in with admin/admin and
changed the admin password.
And that's it - I don't think I've left anything out.
--
Per Jessen, Zürich (7.2°C)
http://www.hostsuisse.com/ - virtual servers, made in Switzerland.
--
To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org
To contact the owner, e-mail: opensuse+owner@opensuse.org