Premature end of script headers

Tedman Eng teng at dataway.com
Wed Jan 4 11:55:22 CET 2006


Refer to your httpd logs, look for errors.  
Maybe even post them here, we're not psychic.

"Permission Denied" is most likely in your httpd logs.

Double-check file and directory permissions.
Check the parent directory too, and it's parent, etc...

The http server usually runs as either "apache" or "nobody".
Can either of those accounts read the nagios/var directory?

Double-check httpd configuration, is the directory containing your CGI's
"Script Executable"? (ie Options ExecCGI)



> -----Original Message-----
> From: Salman Usmani [mailto:ms_usmani at hotmail.com]
> Sent: Wednesday, January 04, 2006 2:19 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Premature end of script headers
> 
> 
> Hello,
> 
> I installed nagios 1.3 on one of our RHEL3 boxes.
> 
> Running ../bin/nagios -v nagios.cfg from the /etc directory 
> gave no errors.
> 
> However the web interface doesnt seem to allow the cgi's to 
> execute. I can 
> get to http://serverIP/nagios/
> 
> The index page and documentation loads fine but i get the 
> following errors 
> when trying to load ANY of the cgi's:
> 
> Premature end of script headers: /usr/local/nagios/sbin/status.cgi
> Premature end of script headers: /usr/local/nagios/sbin/extinfo.cgi
> Premature end of script headers: /usr/local/nagios/sbin/tac.cgi
> 
> Can someone help?
> 
> Thanks so much
> 
> Salman
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep 
> through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  
> DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS 
> when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
> 


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list