Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member sh4ka's Avatar
    Join Date
    May 2005
    Posts
    433

    Default Nagios on cPanel, not parsing index.php

    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:

    Code:
    [root@my.server.com:~]grep nagios /etc/httpd/conf/httpd.conf
    # Include /etc/httpd/conf.d/nagios.conf
    [root@my.server.com:~]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>
    
    [root@my.server.com:~]
    Any ideas about what could be the issue?
    Have anyone setup nagios 3.0 on a cPanel server?

    Thanks!

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Mar 2003
    Location
    NC
    Posts
    725
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    So does it show it as text? That is a mimetype issue if so.

    Do you have an htaccess setup for the nagios? That could be causing it. This is not a nagios issue but an apache configuration issue, nagios will run fine.

    You should have something like this in one of your apache configs:

    LoadModule php5_module modules/libphp5.so
    AddType application/x-httpd-php .php5 .php4 .php .php3 .php2 .phtml

    This of course assumes that NO php files are parsing anywhere, if they are its probably an htaccess on the nagios domain.

Similar Threads & Tags
Similar threads

  1. PHP: Error parsing /usr/local/lib/php.ini on line 782
    By BerbBrown in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-11-2011, 06:07 PM
  2. PHP: Error parsing /usr/local/lib/php.ini on line 1136
    By desiguru in forum New User Questions
    Replies: 1
    Last Post: 12-08-2009, 08:11 PM
  3. Parsing .html files as .php inside Cpanel skin
    By Radio_Head in forum Themes and Branding
    Replies: 9
    Last Post: 12-13-2004, 03:35 PM
  4. Cpanel stopped parsing php files
    By joana in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-22-2002, 12:06 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube