[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] CGI Newbie



>
> 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.

--
Dan Kriwitsky