Internal Server Error 500 - Is chcon the fix?

EXT-Fuentes, James P James.P.Fuentes at boeing.com
Tue May 10 19:01:31 CEST 2005


I had the same problem and chcon resolved it.
-Jim

________________________________

From: Danny Russell [mailto:drussell at mpifix.com]
Sent: Mon 5/9/2005 1:20 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Internal Server Error 500 - Is chcon the fix?



Hello All,

 

I am trying to get my Nagios up and running. I have it running in the background sending me out emails, but I cannot get the web interface to work. 

 

I am running Centos 4.0, nagios-1.2-2.2.el4.rf, nagios-plugins-1.4-2.2.el4.rf, httpd-2.0.52-9.ent.centos4.1, perl-5.8.5-12.1

 

All of the CGI files give an Internal Server Error 500

[Mon May 09 14:20:49 2005] [error] [client 10.10.2.11] (13)Permission denied: exec of '/usr/lib/nagios/cgi/config.cgi' failed, referer: http://nagios.mpifix.com/nagios/side.html

[Mon May 09 14:20:49 2005] [error] [client 10.10.2.11] Premature end of script headers: config.cgi, referer: http://nagios.mpifix.com/nagios/side.html

[Mon May 09 14:21:00 2005] [error] [client 10.10.2.11] (13)Permission denied: exec of '/usr/lib/nagios/cgi/avail.cgi' failed, referer: http://nagios.mpifix.com/nagios/side.html

[Mon May 09 14:21:00 2005] [error] [client 10.10.2.11] Premature end of script headers: avail.cgi, referer: http://nagios.mpifix.com/nagios/side.html

[Mon May 09 14:21:01 2005] [error] [client 10.10.2.11] (13)Permission denied: exec of '/usr/lib/nagios/cgi/avail.cgi' failed, referer: http://nagios.mpifix.com/nagios/side.html

[Mon May 09 14:21:01 2005] [error] [client 10.10.2.11] Premature end of script headers: avail.cgi, referer: http://nagios.mpifix.com/nagios/side.html

[Mon May 09 14:21:02 2005] [error] [client 10.10.2.11] (13)Permission denied: exec of '/usr/lib/nagios/cgi/avail.cgi' failed, referer: http://nagios.mpifix.com/nagios/side.html

[Mon May 09 14:21:02 2005] [error] [client 10.10.2.11] Premature end of script headers: avail.cgi, referer: http://nagios.mpifix.com/nagios/side.html

[Mon May 09 14:21:03 2005] [error] [client 10.10.2.11] (13)Permission denied: exec of '/usr/lib/nagios/cgi/status.cgi' failed, referer: http://nagios.mpifix.com/nagios/side.html

[Mon May 09 14:21:03 2005] [error] [client 10.10.2.11] Premature end of script headers: status.cgi, referer: http://nagios.mpifix.com/nagios/side.html

 

Should I run 'chcon -R -t httpd_sys_content_t /usr/lib/nagios/cgi/' on the cgi files to get them to work? What is the recommended fix for this?

 

--Thanks

 

Danny Russell

Mobile Productivity, Inc.

drussell at mpifix.com

Enabling the World To Work

 

 



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_ids93&alloc_id281&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