Jump to content

Apache ScriptLog CGI Errors/Debugging?


hawleyal

Recommended Posts

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

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...