CGI Error: The server encountered an internal error or misco

I get the above error on the web front end, or a blank page, and the apache logs show the below:

(13)Permission denied: exec of ‘/usr/local/nagios/sbin/status.cgi’ failed, referer: alonl01/nagios/side.html

I’ve followed meulie.net/portal_plugins/fo … c.php?1997 and get

[root@alonl01 sbin]# ldd trends.cgi
linux-gate.so.1 => (0x005cc000)
libgd.so.2 => /usr/lib/libgd.so.2 (0x449d9000)
libiconv.so.2 => /usr/local/lib/libiconv.so.2 (0x0097a000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0x450ea000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x4590a000)
libz.so.1 => /usr/lib/libz.so.1 (0x44966000)
libm.so.6 => /lib/libm.so.6 (0x44924000)
libc.so.6 => /lib/libc.so.6 (0x447df000)
libXpm.so.4 => /usr/lib/libXpm.so.4 (0x449c6000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x44aed000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x44f42000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x44dc7000)
/lib/ld-linux.so.2 (0x447c2000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x44a9f000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x44aa4000)
libdl.so.2 => /lib/libdl.so.2 (0x4491e000)
libexpat.so.0 => /lib/libexpat.so.0 (0x44d68000)

So there is nothing missing there, and the cgi files in the sbin directory are chown to apache.nagios and rights for all files as below. It didn’t work when the files were nagios.nagios owned either.

-rwxrwxr-x 1 apache nagios 170932 Apr 3 15:46 avail.cgi
-rwxrwxr-x 1 apache nagios 179052 Apr 3 15:46 cmd.cgi
-rwxrwxr-x 1 apache nagios 131924 Apr 3 15:46 config.cgi
-rwxrwxr-x 1 apache nagios 194604 Apr 3 15:46 extinfo.cgi
-rwxrwxr-x 1 apache nagios 140276 Apr 3 15:46 histogram.cgi
-rwxrwxr-x 1 apache nagios 119764 Apr 3 15:46 history.cgi
-rwxrwxr-x 1 apache nagios 116148 Apr 3 15:46 notifications.cgi
-rwxrwxr-x 1 apache nagios 117328 Apr 3 15:46 outages.cgi
-rwxrwxr-x 1 apache nagios 115828 Apr 3 15:46 showlog.cgi
-rwxrwxr-x 1 apache nagios 173552 Apr 3 15:46 status.cgi
-rwxrwxr-x 1 apache nagios 133748 Apr 3 15:46 statusmap.cgi
-rwxrwxr-x 1 apache nagios 129396 Apr 3 15:46 statuswml.cgi
-rwxrwxr-x 1 apache nagios 115572 Apr 3 15:46 statuswrl.cgi
-rwxrwxr-x 1 apache nagios 136564 Apr 3 15:46 summary.cgi
-rwxrwxr-x 1 apache nagios 136720 Apr 3 15:46 tac.cgi
-rwxrwxr-x 1 apache nagios 144372 Apr 3 15:46 trends.cgi

There are no PHP errors either. I am running RH ES 5 in case this might point to a problem. Does anyone have any ideas on how to resolve this?

Pax