Hello,
I previously installed nagios 2.x some years ago on a plain RHEL 4. server… now i needed to setup this on a cPanel with CentOS 5.3…
I did all steps from the officiall guide: Fedora Quickstart
Everything seems to be fine, configuring, compiling and installing, started the service and it was ok, however, when I go to http://IP/nagios/ it shows a index.php, it is not parsing the php file.
This is what I got from httpd.conf:
[[email protected]:~]grep nagios /etc/httpd/conf/httpd.conf
# Include /etc/httpd/conf.d/nagios.conf
[[email protected]:~]cat /etc/httpd/conf.d/nagios.conf
# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
# Last Modified: 11-26-2005
#
# This file contains examples of entries that need
# to be incorporated into your Apache web server
# configuration file. Customize the paths, etc. as
# needed to fit your system.
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>
[[email protected]:~]
Any ideas about what could be the issue?
Have anyone setup nagios 3.0 on a cPanel server?
Thanks!