Another cacti problem
Hey guys,
For some 4 months i've got this idea of installing cacti on my ubuntu 6.06 server. I even tried it a coupe of times but no luck... So, i have tried to compile it manually but i've got some problems with some additional packages, so i used the mighty Code:
apt-get install cacti Code:
/var/lib/mysql/cacti/ Code:
Forbidden |
don't take this as the defacto way of dealing with this, cacti might tell you a different way that they are dealing with this, but essentially.....
you're getting that error message because the apache httpd.conf does not define that the http server is allowed to access that locatino, ie.. a location outside of /var/www. to do this you would typically edit httpd.conf and add a section similar too... Code:
<Directory "/usr/share/cacti"> |
Hmm, i have tried the above given steps and stil nothing.
i have tried both: http://host.com/cacti and with 'http://host.com/usr/share/cacti' (how dumb of me to try this) i get: Code:
Object not found! UPDATE: In '/etc/cacti' i've found 'apache.conf' which contains the following: Code:
Alias /cacti /usr/share/cacti |
ahh right yeah, this fits in well with my disclaimer. well what apache and packages using apache have been moving towards is driectory based configuration files, not a single file. i.e. a new app has apache config, so dumps it in /etc/httpd/conf.d/myfile.conf rather than in the formal httpd.conf. this makes things an awful lot simpler for everyone. what you might have here is a symlink to that file from a directroy like conf.d. if not either copy it to there or add your own symlink. if there appears to be no such directory (or a bit like
Code:
# Load config files from the config directory "/etc/httpd/conf.d". |
Herein lies the dilema, i have pasted the code in '/etc/apache2/httpd.conf' and yet the same result. Again, should i restart the apache server? How do i reset the apache server?
i've found something like: Quote:
Q: Should i add code to: '/usr/share/apache/default-configs/apache/httpd.conf' or to '/etc/apache2/httpd.conf' ? |
yep, use graceful. the default-configs stuff is going to be for reference only, it won't be a live config file.
|
Ok, with the wonder of google i've manage to find 'apache -k restart'.
First it gave me this: Code:
[Thu Oct 05 14:15:09 2006] [warn] The Alias directive in /etc/apache2/conf.d/alias at line 1 will probably never match because it overlaps an earlier Alias. Code:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'cacti'@'localhost' (using password: YES) in /usr/share/adodb/drivers/adodb-mysql.inc.php on line 319 |
ok well that's fine then yeah? apache problem over. i'd request a seperate thread if you wish to get help for that, as that's really going to be unrelated to the original question.
|
Right you are, i'll do that right now! Thanks for the kind support!
|
All times are GMT -5. The time now is 09:20 AM. |