SoftDux Hosting
Please Login or Register

Knowledgebase

500 Internal server error - perl script

Please note that support offered for 3rd party software and scripts is discretionary

This is one of the most misleading errors a script can throw up - unfortunately it does not give you much clue as to what has happened.

If a perl script fails with the above error then it is either because you have:

uploaded the script in BINARY mode rather than ASCII
Not included: print "Content-type: text/html";
Made an error in the actual coding
The script requires a perl module which is not available on the server


You can cause perl to display more information by using CGI.pm like so:

use CGI::Carp qw(fatalsToBrowser);

Insert that line just below the "shebang" line (#!/usr/bin/perl)


Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
Where is my CGI-Bin? (Views: 318)
(Views: 10)

Quick Navigation

Client Login

Email

Password

Remember Me

Search



Follow Us on Twitter