I found out that it stops (waits for input) on the fread in getcgi.c (around line 180):
printf("getcgivars(): Could not read input from STDIN.\n");
ldd -v cmd.cgi
libc.so.6 => /lib/tls/libc.so.6 (0x4001c000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
libc.so.6 (GLIBC_2.1) => /lib/tls/libc.so.6
libc.so.6 (GLIBC_2.3) => /lib/tls/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/tls/libc.so.6
ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_2.0) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
So with the fread problem, I now have a better idea where to begin.
I have changed from:
and it still doesn't go past this point...
I made a simple cgi script and I have determined that it must be an apache setting. This script does not read stdin when its in /home/nagios/nagios/sbin/ (aliased) but works fine when its in /usr/local/cgi-bin/ (apache default). :?
I found out that when I have AllowOverride set to 'None' the script I created above works, but when I set it to 'AuthConfig' it stops on the fread.
Allow from all
Edited Thu Sep 22 2005, 11:34AM ]