Re:

by "Lara J. Fabans" <lara(at)lodestone-sw.com>

 Date:  Tue, 01 Jan 2002 08:24:26 -0800
 To:  Jim Witte <jswitte(at)bloomington.in.us>,
HWG Languages List <hwg-languages(at)hwg.org>
 In-Reply-To:  in
  todo: View Thread, Original
At 09:18 PM 12/31/2001 -0500, Jim Witte wrote:
>   I'm very new to programming CGI using Perl, and I'm looking to debug 
> scripts locally using a MacOS X box and Apache.  How can I get the Perl 
> interpreter to pipe debugging information (error, line number) back 
> through the web gateway?  I looked in the log file, and it didn't have 
> any more detailed information other than that an error occurred.  I 
> deleted the error log file (thinking it would recreate it), but it didn't 
> and now I can't get Apache to recognize a new log file.  Can anybody help?


Add in the lines

use diagnostics;
use CGI::Carp qw(fatalsToBrowser);


I don't believe it will be able to recreate the log file since the browser 
is probably being run as nobody who does not
have permission to create the log file.

As the superuser/root
cd <directory where your error_log was>
cat >> error_log
Cntrl-D
chmod 744 error_log


And don't worry about deleting the error log.   Unix is set up to clean 
itself up regularly.  I'm sure there
must be some maximum size settings for log files somewhere.

Lara
---------------------
Lara J. Fabans
Lodestone Software, Inc
lara(at)lodestone-sw.com

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA