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

[ale] Files created by Perl



You also need to do some error handling in the script.  Are you getting
an error message on your web page when you try to run it from a browser?

I learned a long time ago nothing sucks more than to have an error in
the middle of a CGI and have already sent half the page to the browser.
Queue up the page and then send it only when the CGI is a success.  If
there are any errors send a standard error page with the error message
so you can fix it.

On Tue, 2007-01-23 at 04:25 -0500, Mike Harrison wrote:
> > I build some text files and same them to disk.
> > If I run the script by hand the files are generated, but if I call the 
> > script from a Web browser then the files are not built.
> > I thought there might be a problem in the config file for apache.  Can 
> > someone please help me.
> 
> Your directory, files, etc, must be writable by your webserver. 
> 
> chown apache:apache * 
> chown apache:apache . 
> 
> or maybe:
> 
> chown www-data:www-data *
> 
> or maybe
> 
> chmod 744 *
> 
> or.. Lots of variations possible, but be careful out there. 
> de-taint any inputs... 
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale