How to run Perl CGI script for cPanel

Create the folling script for test page test.cgi:
#!/usr/bin/perl
print “Content-type: text/html\n\n”;
print “Hello, Perl works!” for the website page test.cgi!”;

Then setup for the file permission 755,the next step to input the .htaccess for code:
AddHandler cgi-script .cgi .pl

It is ok if it shows “Hello, Perl works!” for the website page test.cgi!”

1 thought on “How to run Perl CGI script for cPanel”

Leave a Comment

*