hilltopgo
1-5-02, 04:35 PM
Like so many before me, I'm having trouble getting a script to run. I've read through other messages, and can't figure out what I'm doing wrong -- path to perl is specified; script file is in a subdir of cgi-bin; chmode 755 on cgi-bin and the subdir; script uploaded in ascii mode; chmod to 755; HTML file is in htdocs, uploaded in ascii; added a .htaccess file (still didn't work) then deleted it (still doesn't work)... Argghh. Unless WS_FTP is goofing the chmod, i'm at a loss. But it reports '200 CHMOD command successful' so that must not be it. Server is pluto.
The script is a simple one I modified from BigNoseBird tutorial (http://www.bignosebird.com/prcgi.shtml) . (It also didn't work before I modified it.)
It is at hilltopgo.com/whywontitwork.txt (http://www.hilltopgo.com/whywontitwork.txt)
It didn't work when it was named .pl either.
I'm trying to post to it from a simple HTML file at
www.hilltopgo.com/myscript.html (http://www.hilltopgo.com/myscript.html) .
Here is the error message I've memorized from seeing it a hundred times:
=== begin http://www.hilltopgo.com/cgi-bin/myscript/myscript.cgi error message ===
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
[...]
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
=== end http://www.hilltopgo.com/cgi-bin/myscript/myscript.cgi error message ===
Here is the error message from the error log file... rats! I deleted it, on the basis of a forum message that said deleting the error log and starting over seemed to help. (In my case, it didn't.) Now, even though I'm still getting the error, I see no error log. Egad, what are the permissions supposed to be for /logs/ ? I now have them set to 755; is that right? Life with no updated logs will be weird indeed.
Anyway, the error message was something quite close to this:
[Sat Jan 5 04:07:31 2002] [error] [client 206.103.67.249] Premature end of script headers: /www/h/hilltopgo/cgi-bin/myscript/myscript.cgi
Can't do setuid
[Sat Jan 5 04:07:31 2002] [error] [client 206.103.67.249] Premature end of script headers: /powweb/web/cgi-bin/error.cgi
Sorry for the length of this; i'm hoping to have it answered in one go, so didn't want to leave out a crucial clue. (Being a clueless newbie, i probably left it out anyway.)
Thanks for any help, - Mike the TacomaGoFiend
The script is a simple one I modified from BigNoseBird tutorial (http://www.bignosebird.com/prcgi.shtml) . (It also didn't work before I modified it.)
It is at hilltopgo.com/whywontitwork.txt (http://www.hilltopgo.com/whywontitwork.txt)
It didn't work when it was named .pl either.
I'm trying to post to it from a simple HTML file at
www.hilltopgo.com/myscript.html (http://www.hilltopgo.com/myscript.html) .
Here is the error message I've memorized from seeing it a hundred times:
=== begin http://www.hilltopgo.com/cgi-bin/myscript/myscript.cgi error message ===
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
[...]
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
=== end http://www.hilltopgo.com/cgi-bin/myscript/myscript.cgi error message ===
Here is the error message from the error log file... rats! I deleted it, on the basis of a forum message that said deleting the error log and starting over seemed to help. (In my case, it didn't.) Now, even though I'm still getting the error, I see no error log. Egad, what are the permissions supposed to be for /logs/ ? I now have them set to 755; is that right? Life with no updated logs will be weird indeed.
Anyway, the error message was something quite close to this:
[Sat Jan 5 04:07:31 2002] [error] [client 206.103.67.249] Premature end of script headers: /www/h/hilltopgo/cgi-bin/myscript/myscript.cgi
Can't do setuid
[Sat Jan 5 04:07:31 2002] [error] [client 206.103.67.249] Premature end of script headers: /powweb/web/cgi-bin/error.cgi
Sorry for the length of this; i'm hoping to have it answered in one go, so didn't want to leave out a crucial clue. (Being a clueless newbie, i probably left it out anyway.)
Thanks for any help, - Mike the TacomaGoFiend