Page 1 of 1
Access Forbidden - Error 403
Posted: Sat Jul 28, 2012 10:24 am
by scater
During my initial installation, I am receiving the following error when trying to access the web interface (
http://localhost/nagios/ using the nagiosadmin user) -
Access Forbidden - Error 403.
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
Install is on SuSE 11.2.
Re: Access Forbidden - Error 403
Posted: Mon Jul 30, 2012 11:25 am
by agriffin
How did you install Nagios, from source or from a SuSE package?
Re: Access Forbidden - Error 403
Posted: Mon Jul 30, 2012 3:41 pm
by scater
From the SuSE Pacakge download -
Re: Access Forbidden - Error 403
Posted: Mon Jul 30, 2012 4:55 pm
by slansing
Do you have all the required Php5 packages? Both PHP5 itself and the PHP5 module for Apache?
Re: Access Forbidden - Error 403
Posted: Mon Jul 30, 2012 7:49 pm
by scater
I've installed the php modules and I am getting the following error when trying to restart the apache2 service (service apache2 restart) -
Invalid command 'ScriptAlias', perhaps misspelled or defined by a module not included in the server configuration
Here is the etc/apache2/httpd.conf file:
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
Re: Access Forbidden - Error 403
Posted: Tue Jul 31, 2012 9:20 am
by scater
Also, what php5 modules are required ? I have loaded:
Apache2-mod_php5
php5
php5-ctype
php5-dom
php5-hash
php5-iconv
php5-json
php5-suhosin
php5-tokenizer
php5-xmlreader
php5-xmlwriter
Are any other required? Thanks.
Re: Access Forbidden - Error 403
Posted: Wed Aug 01, 2012 9:42 am
by nscott
You shouldn't actually need any PHP modules for Nagios, its all still CGIs.
This is most definitely an Apache configuration issue, and I find it puzzling that its even an issue. That ScriptAlias is includes in mod_alias, can you search your package manager for mod_alias?
Re: Access Forbidden - Error 403
Posted: Wed Aug 08, 2012 8:29 am
by scater
no luck finding any packages named mod-alias - I'm getting the following error when trying to access nagios via IE9-
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.
Error 403
10.100.147.200
Wed Aug 8 08:14:58 2012
Apache/2.2.12 (Linux/SUSE)
This sure seems to be a permissions issue. Any ideas what folders/files maight be causing this issue...?
Thanks
Re: Access Forbidden - Error 403
Posted: Wed Aug 08, 2012 8:45 am
by scater
also, when trying to restart apache2 (service apache2 restart) , I'm now getting the Invalid command ScriptAlias, perhaps misspelled or defined by a module not inlcuded in the server configuration ---
All help is greatly appreciated ...