[H-GEN] CGI internal server error

James McPherson jmcphers at laurel.ocs.mq.edu.au
Thu Oct 15 23:52:50 EDT 1998


Martin Pool writes:
 > On Fri, Oct 16, 1998 at 12:52:58PM +1000, James McPherson wrote:
 > > who owns the script? is it runnable by whichever login is running the httpd
 > > process (such as nobody:nobody)? if not, then that's a good thing to check
 > > first - chmod 0755 is probably what you're looking for.
 > Try reading the server's error log, which is usually
 > /var/log/apache/errors, or something like that.  That shows the stderr
 > from running the program, and probably tells you where the missing
 > quotation mark is.

Good point to check the logfiles ;) But I don't think that there'll be a
missing quotation mark, since Luke said that it ran fine from the shell.

[the Luke responded with]:

 > root:root   chmod 755......also tried chmod 777 out of frustration :)
 > but to no avail :(


what about the permissions on <httpdroot>/cgi-bin ? readable and execable by
everybody? (it should be, unless the installation screwed up). 

does the program/script try to open any files? does it have appropriate
permissions to read/write from/to those files?

maybe a snippet of your logfiles would be in order ;)


cheers,
James C. McPherson
--
Unix Systems Administrator            Phone: +61.2.9850.9418
Office of Computing Services            Fax: +61.2.9850.7433
Macquarie University   NSW    2109 
AUSTRALIA          




More information about the General mailing list