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.
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?
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, [email protected] 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: