cgi bin perl scripts not working

Status
Not open for further replies.

rakhaj2010

New Member
Messages
1
Reaction score
0
Points
0
how do i get cgi -bin perl scripts to work eg

#!/usr/local/bin/perl

# hello.pl -- my first perl script!

print "Content-type: text/html\n\n";

print "Hello, world!\n";



doesnt run when i copy to the cgi-bin folder???
 

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
make sure the script is executable: chmod it to 755.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Uploaded in ASCII, not binary?
If written in Notepad++, saved without BOM?
 
Last edited:
Status
Not open for further replies.
Top