Can't get a simplr perl script to work

rogersjr

Verified User
Joined
Mar 15, 2004
Messages
25
Location
Australia
Can't get a simple perl script to work

I am attempting to install a simple "this day in history" perl script. Obviously I am failing miserably.

When going to http://www.cerberus.com.au/cgi-bin/today.pl I get the following error message.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@cerberus.com.au 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 have uploaded the single perl file in ASCII mode. All files are in the cgi-bin folder so all path references are relative. The first line of today.pl is #!/usr/bin/perl and I have tried #!/usr/local/bin/perl

I have also tried renaming today.pl as today.cgi

I have set permission for the cgi-bin folder and today.pl to 777

Can anyone suggest what I am doing wrong?
 
Last edited:

rogersjr

Verified User
Joined
Mar 15, 2004
Messages
25
Location
Australia
Bingo. I have always used 777 when setting a script up and then set each file correctly when everything was working properly. Obviously not the way to go for perl. Thanks very much.
 
Top