Script warnings / troubleshooting
tcee said 1 year, 1 month ago:
Can anyone tell me how to troubleshoot perl and cgi script errors on Godaddy’s Linux servers?
(ex: syntax errors and the like, not permission-based errors.)
In other words, is anyone with a Godaddy Linux account able to use any of the following successfully
in their scripts to view the line # and error…
* the -w switch ?
* use warnings ?
* use strict ?
Also, can anyone provide info about how Godaddy’s error logs differ from STDERR?
Thanks.
bryceh said 1 year, 1 month ago:
@tcee
If you are trying to troubleshoot specific PERL or CGI errors, you may want to reach out to our support team directly with more information about the errors. They can test out your specific hosting account to make sure everything is running okay.
Also, it does appear that the PERL modules Strict, Warnings, and Switch are all available with our Linux shared hosting accounts. You can check out the link below for more information about PERL and shared hosting:
http://support.godaddy.com/help/article/2503
Hope this helps!
-Bryce
tcee said 1 year, 1 month ago:
Thanks, Bryce. Yes, I had seen the article at the URL you posted.
I’m not having any luck so far so I thought I’d submit a generic post
that would ask about Godaddy’s Linuz accounts in general.
Do you know if Godaddy’s error logs are supposed to reflect the same results as STDERR?
(I sent an email to Support, but that didn’t work out, and then I posted to this forum on May 15th…
http://support.godaddy.com/groups/web-hosting/forum/topic/script-testing-and-error-logs/
A kind soul named Jason told me he’d send my inquiry to someone, but I haven’t received a response.)
I can’t imagine what might be causing the problem but I’m hopeful that when this is sorted, the -w switch, use warnings and use strict will work. Thanks, again.
Gary A said 1 year, 1 month ago:
@tcee
The Error Logs are the standard Apache Error Logs. The error log will contain debugging output from CGI scripts. Any information written to stderr by a CGI script should be copied directly to the error log. Further information on the Apache Error Logs can be reviewed here:
http://httpd.apache.org/docs/1.3/logs.html#errorlog
-Gary
8 min expected wait time