I have installed Nagios (3.4.1 , /usr/local/nagios), Apache (2.0.64 , /usr/local/apache2) and PHP (5.4.8 , /usr/local/php) from source on my RHEL 6.0 Server.
i tested the simple PHP code <?php echo "Hello" ?> that gave me output Hello when opened at
http://localhost/test.php It means php is working fine
But when i do
http://localhost/nagios It opens the default page.when clicked on links given at default page It gives error like
The requested URL /nagios/cgi-bin/statusmap.cgi was not found on this server.
when clicked on "Map" link .
but there is no cgi-bin directory in /usr/local/nagios or in its internal directories. only there are certain .cgi files present in "/usr/local/nagios/sbin/"
I declared Alias /nagios /usr/local/nagios/share/
I Searched index.html and changed it to index.php in the /usr/local/apache2/conf/httpd.conf file
Tell me where is the fault.....