Page throwing a 500 Internal Server Error?
Here are some things you can do to help troubleshoot the errors.
For Perl Scripts:
After you are positive that you have uploaded your CGI scripts in ascii mode and have set the permissions correctly (usually 755)?
If yes, you might consider adding a "- w" after the shebang line (#!/usr/bin/perl)
Your shebang will then look like this:
This will sometimes cause Perl to spit out exactly what the issue is.Code:#!/usr/bin/perl -w
For PHP Scripts:
After you are positive that you have uploaded your PHP scripts in binary mode and have set the permissions correctly (usually 644 or 444)?
View the error logs!
Did you know that your control panel has error logging enabled?
This lets you see where the script might be failing as well.
Log into the control panel and select Stats > Error Log.
You might even see "error_log" in the same directory that your scripts run in. This can be a good place to start.