Internal Server Errors
Error 500 or, Internal Server Errors occur when the web server has a problem executing your script. This may be because the script has an error in its syntax, like calling a function which does not exist, or missing a semi-colon at the end of a command. However, there may be a much simpler cause.
Check the permissions and the file upload mode.
Perl scripts must be uploaded in ASCII mode, and be chmodded to 755 (rwxr-xr-x). Enforcing this and re-uploading the file (upload it in ascii then chmod) often resolves the majority of these errors.
If this doesn't work, you can view the error log by logging in to cPanel at https://www.yourdomain.com:2083/ and selecting: Error Log. This usually provides an insight into why a script won't run.
A "premature end of script" error seen in the error log often means that a semi-colon is missing from one of the lines of the perl script.


