Perl Script Error 500 Print

  • 4

If you get this error when trying to load a perl script through your browser then this tutorial should be able to help you:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


I. Non syncacsys related problems:

1. It is best to save and edit your .pl file using notepad in ANSI encoding.

2. Default transfer ptype of your FTP client should be set to ASCII. If set to binary uploaded perl files would not work. Please do not confuse ANSI with ASCII.

3. Perl files should always have 755 permissions.


II. Syncacsys related problems:

1. Do not forget to start the script with the first line being


2. In order to troubleshoot a problem related to your perl syntacsys please add the followowing line code on the second line right after #!/usr/bin/perl:

use CGI::Carp qw( fatalsToBrowser );

only if all non syncacsys related problems are solved then this will display a more accurate error message what is wrong with your code.

Thses instructions should help you troubleshoot error 500 in perl scripts. If you are still unable to run your script after going through the steps above feel free to conatct us.

Was this answer helpful?

« Back