localhost/cacti returns Forbidden

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
James Austin
Posts: 5
Joined: Thu Sep 26, 2002 12:37 pm

localhost/cacti returns Forbidden

Post by James Austin »

When I try to browsw localhost/cacti it says:

Forbidden

You don't have permission to access /cacti/ on this server

:(

I'm a newbie at this so am not sure if it's referring to file permissions or MySQL permissions.

Any help greatly appreciated.

Thanks in advance.
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Sounds like file permissions to me.

Make sure the user your web server runs as has read access to cacti's directory. Assuming your web server user is apache and cacti is installed at /var/www/html/cacti, you could execute the following command:

Code: Select all

chown -R apache /var/www/html/cacti
You also need to make sure the user 'cmd.php' runs as has write access to cacti's 'rra/' and 'log/' directories, but we'll take it one step at a time...

-Ian
kimael
Posts: 1
Joined: Fri Jan 28, 2005 4:32 am
Location: Angers, 49, France
Contact:

Post by kimael »

Hi !

I have 2 PC with the same configuration.
The first didn't forbid access, but the second did.

A solution (I can't explain) : change the directory name (cacti -> cacti_stats for example).

I use MadrakeLinux and installed Cacti's RPM. Maybe it has changed my Apache configuration :-/
Mort aux cons ! ARg
User avatar
gninja
Cacti User
Posts: 371
Joined: Tue Aug 24, 2004 5:02 pm
Location: San Francisco, CA
Contact:

Post by gninja »

Depending on your webserver configuration you may get a permission denied/forbidden error if you hit a directory based url without a trailing slash...

ie:
http://host.net/cacti

rather than:
http://host.net/cacti/
or:
http://host.net/cacti/index.php
FreeBSD/RHEL
cacti-0.8.7i, spine 0.8.7i, PIA 3.1+boost 5.1
MySQL 5.5/InnoDB
RRDtool 1.2.27, PHP 5.1.6
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests