Internal Server Error 500 - Is chcon the fix?

Danny Russell drussell at mpifix.com
Mon May 9 22:20:53 CEST 2005


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

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050509/0ec45038/attachment.html>


More information about the Users mailing list