Perl

Status
Not open for further replies.

christiand14

New Member
Messages
51
Reaction score
0
Points
0
Hi, I have downloaded a free script for my site which requires Perl and I has wondering how to use this in cPanel as I cannot find it. This (#!/usr/bin/perl) is a common place according to the instructions. Please could you tell me how to access it. Thanks
 

v4xde

New Member
Messages
74
Reaction score
0
Points
0
I have the 500 error, i have changed the directories and script to 777, and others and still not working.

I know that the script is working as I use it on another similar server.

I just wanderer if the free account does not give Perl access.

Thanks for your anserws in advance.
 

christiand14

New Member
Messages
51
Reaction score
0
Points
0
What is the path to Perl? Do you go through a file manager? Sorry i'm new to this! :confused:
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
If you place the script in the cgi-bin directory,

1. Permissions set to 0755
2. #! /usr/bin/perl the first line
3. Uploaded in ASCII mode, not binary, especially if you are working from a Windows machine
4. If you use Notepad++ make sure that the encoding does not have a BOM
5. print "Content-type: text/html\n\n"; before any output
6. I usually add use CGI::Carp qw(fatalsToBrowser); which doesn't help with 500 errors, but does help other debugging.


use CGI::Carp qw(fatalsToBrowser);
 

christiand14

New Member
Messages
51
Reaction score
0
Points
0
If you place the script in the cgi-bin directory,

1. Permissions set to 0755
2. #! /usr/bin/perl the first line
3. Uploaded in ASCII mode, not binary, especially if you are working from a Windows machine
4. If you use Notepad++ make sure that the encoding does not have a BOM
5. print "Content-type: text/html\n\n"; before any output
6. I usually add use CGI::Carp qw(fatalsToBrowser); which doesn't help with 500 errors, but does help other debugging.


use CGI::Carp qw(fatalsToBrowser);

Thanks will try that now! :wink:
 

christiand14

New Member
Messages
51
Reaction score
0
Points
0
What should I do when I come across a 500 error. I uploaded all of the files as it says in there readme file and when it tells me to go to a certain page i get my custom 500 error page. What should I do?
 
Status
Not open for further replies.
Top