Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^4: CGI::Carp fatalsToFile

by Bod (Parson)
on Oct 05, 2021 at 23:17 UTC ( [id://11137249]=note: print w/replies, xml ) Need Help??


in reply to Re^3: CGI::Carp fatalsToFile
in thread CGI::Carp fatalsToFile

Just omitting CGI::Carp and just using plain old Carp should do the trick

It's late here so a quick test before I head to bed...
I've changed from CGI::Carp to Carp in the script that gives the 500 error as suggested. Of course it makes no difference to the way the script behaves. But also, it doesn't write anything to the cPanel error log.

The only remaining problem might be the hoster: Some really cheap hosters prevent you from reading your server's error log

I've never been entirely sure what the cPanel error log actually is so I have dived into the documentation to find out. Its says "The interface includes entries in the /usr/local/apache/logs/suexec_log file and the /usr/local/apache/logs/error_log file"

Not knowing a great deal about the inner workings of Apache and cPanel, it looks to me like the latter will be the right error log file where these sorts of errors should be written. Certainly lots of "File does not exist" errors get written there along with a few Perl warnings and the odd MariaDB error.

The script I am calling gets listed in the suEXEC log but the one that it calls (the one with the error) does not.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11137249]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-20 06:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found