Jump to content

Apache ScriptLog CGI Errors/Debugging?


Recommended Posts

Posted

I keep getting errors when I try to use the ScriptLog directive.

 

Is this now allowed in .htaccess?

 

I've tried:

ScriptLog script_log
ScriptLog /script_log
ScriptLog /public_html/script_log
ScriptLog /home/hawleyal/public_html/script_log

 

How in the world are you supposed to debug CGI without ScriptLog?

 

Thoughts?

 

Thanks.

 

 

-AH

Posted

if that's causing you 500 errors then it's probaly not allowed. You can however add this to a script if your having problems and it will write to a text file with the errors.

 

BEGIN { 
use CGI::Carp qw(carpout); 
use diagnostics;
open(LOG, ">errors.txt"); 
carpout(LOG);
close(LOG);
}

use CGI::Carp qw(fatalsToBrowser);

 

 

You can also check your "Error log" at your cpanel for errors.

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...