Permission Denied Error?
I have installed cacti through:
Code:
yum install cacti I am able to open the cacti page through http://localhost/cacti through htmlview command(commandline interface). But when I try opening it under Windows it says: "Permission Denied". I guess the issue is due to httpd.conf DocumentRoot Setting: I am having DocumentRoot as of now under /var/www/html. <Directory /var/www/html> There is a seperate webpage project specific which is already running under /var/www/html. How can I add for cacti on this to work? How can I make it work? |
You can use an Alias:
Code:
Alias /cacti "/usr/share/cacti" Regards |
I made the entry and it displayed:
Code:
Starting httpd: [Thu Dec 10 13:06:01 2009] [warn] The Alias directive in /etc/httpd/conf/httpd.conf at line 547 will probably never match because it overlaps an earlier Alias. |
Check httpd.conf or the other *.conf files that are included, to see if the Alias is already defined somewhere. I guess it should be, as you used yum to install cacti, so it should have take care to create the Allias.
Another thing to check (appart from SELinux) are the dir permissions, that should be 755 for the directories /usr, /usr/share, /usr/share/cacti. |
Yes. The httpd log says:
Code:
service httpd restart Code:
[root@tlmonitors ~]# cat /etc/httpd/conf/httpd.conf|grep Alias |
Which is the line 547 of httpd.conf? There are 2 uncommented Alias directives: "Alias /icons/ "/var/www/icons/" and "Alias /error/ "/var/www/error/", but anyway they have nothing to do with cacti. Comment out the offending line, uncomment the cacti Alias, restart apache and see if it works.
|
All times are GMT -5. The time now is 03:27 AM. |