Get 500 Internal Server Error when trying to run Perl

Status
Not open for further replies.

blooski

New Member
Messages
15
Reaction score
0
Points
1
I have a very simple Perl script which I have placed in the cgi-bin and set 755 permissions on and tried all the suggestions I have seen in the forum and it still errors out. Is Perl really enabled for free hosting accounts?
 

Derek

Community Support Force
Community Support
Messages
12,882
Reaction score
186
Points
63
I think it is. Does it have mysql in it?
 

blooski

New Member
Messages
15
Reaction score
0
Points
1
Thank you. The solution is that it needed the "-w" option on the first line:

#!/usr/bin/perl -w

instead of:

#!/usr/bin/perl
 

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
Your problem is resolved Now. So I am going to close this thread to mark it as resolved. Feel free to create a new thread if you need more help.

***Thread Closed***
 
Status
Not open for further replies.
Top