perl scripts aren't working

mrki

New member
Joined
Aug 30, 2008
Messages
3
I have two servers, around 70 accounts on both servers all accounts are created via directadmin, each account has CGI enabled (checked) but I can't get any perl script to work. I can't even run the most basic script for perl:

Code:
#!/usr/bin/perl
print "Hello world!";
File permissions are set correctly. Everything seems to be ok but I can't run any perl script?
 
You did not print the Content-type header first. That's one of the first things you learn about cgi scripts.

Code:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hello World!";
 
Back
Top