cgi + Perl

Ambrosia

New Member
Messages
2
Reaction score
0
Points
0
:happysad: How to install perl on the server ?
UNIX or not ?

Folder is public_html/cgi-bin/perlsoft/ *.cgi

is this the right path to perl in cgi file #!/usr/bin/perl shebang

:nuts: after install this message appear
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@.x10hosting.com 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.


 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
perl is installed
you have the right path (it is listed on the cPanel, left side, near bottom)
make sure script has permissions of 0755 (can set them in File Manager)
make sure script was uploaded in ASCII mode (if it was written on Microsoft and uploaded in binary mode there are usually problems).
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Also, a good habit to get into is to add:

use CGI::Carp qw(fatalsToBrowser );
use strict;

At the top your perl scripts. The first will put out some extra information if there is a problem and the second forces you to 'declare' your variables, catching spelling mistakes.
 
Top