[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] CGI Newbie
on 5/9/00 8:40 AM, Dan at dan@xxxxxxxxxxxxx wrote:
>>
>> I'm trying to run a cgi script that writes two files to /web/folder on a
>> given site. when the scrip tries to write the files I get the error:
>>
>> Internal server error
>> "The server encountered an unternal error or misconfiguration and was
>> unable to complete your request"
>>
>> I ran this command: chmod 777 /web/folder and still doesn't work
>>
>> Any clues?
>>
> Check the paths carefully in the script. /home/sites/site#/web/folder etc.
> Try that in the script for the path to the /web/folder
> It could be something as simple as a misplaced " instead of \"
> A handy line I add to a CGI that's giving me problems is:
>
> use CGI::Carp qw(fatalsToBrowser);
>
> right at the top of the script after the #!/usr/bin/perl. Helps simply debug
> from the browser.
I didn't know that you could do that. Cool.
Another way to see what is going on and to troubleshoot is to run the script
from the command line. It will echo the errors to STDOUT.
-k