[H-GEN] Weird CGI problem

David Wood dwood at plugged.net.au
Wed Jun 17 03:22:38 EDT 1998


Luke Grant wrote:
> I have written this CGI in "C" for users to update their passwords over
> the net for our Linux server. When i run the program from the unix prompt
> (including the input string of course) it goes great, but the instant i go
> to run it by a html form i get an "Internal Server Error". The blasted
> thing wont even begin to run. We are running apache. All the permissions
> are set right ( i even tried chmod 777 but to no avail). Does anyone have
> any idea why my CGI wont run?

With Unix, it can really only come down to three things:

1.  permissions
2.  permissions
3.  permissions

Unfortunately, it could be any of those.  Even though the script is 777,
it will be run as the user that the Web server runs as.  Try su'ing to
the Web server's user and running the script from the command line. 
That should show you what is happening.

Cheers,
Dave
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
David Wood                | Whenever you find yourself on the side
dwood at plugged.net.au      | of the majority, it is time to reform.
http://www.plugged.net.au |                - Mark Twain
------------------------------------------------------------------
finger dwood at plugged.net.au for PGP public key.




More information about the General mailing list