How to execute perl scripts

shain

New Member
Messages
1
Reaction score
0
Points
0
Hey Guys!

I've been trying to write a perl CGI script but I end up getting a 500 Internal Server Error. Please Help.

My index.pl
=====================
#!/usr/bin/perl
print "Content-type: text/html\r\n\r\n";
print "Hello, World.";
=====================

My .htaccess
=====================
Options +ExecCGI
AddHandler cgi-script .cgi .pl
DirectoryIndex index.pl
=====================

All files including the directory in which the files reside in has 644 permissions. And I still get a 500 Internal Server Error.

Please let me know what I have to do get the perl script working.

Regards,
Shain
 

pknibbe

New Member
Messages
1
Reaction score
0
Points
0
Hi Shain,

your perl file must have execution permission.

set the permission to 744 with the filemanager.

Regards,

Peter
 
Top