Sales Team Phone (Paid Customers Only): +1 (347) 480 1 480
Hosting over 100 000 websites

Knowledgebase - Perl Script Error 500

Perl Script Error 500

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, webmaster@somename.host-ed.me 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

#!/usr/bin/perl

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?

Add to Favourites
Print this Article

Also Read

Language: