Page 1 of 1

Perl dont work?

Posted: Wed Apr 02, 2014 6:38 pm
by Robotrono
Hey everybody, I have installed Vesta CP on Centos 6, well I want install a Text Board in Perl Script, but I can't install because the file cgi dont run, only I see the code from this file.

how I can run a file cgi? I want install this board: http://tablecat.ipyo.heliohost.org/bbs/


Sorry for my bad english

Edit: Ok I try this script on cgi-bin folder and works

Code: Select all

#!/usr/bin/perl

print "Content-Type: text/html\n\n";
print "<html><body><h1>Perl is working!</h1></body></html>";
But I cant run that text board, I get Error 500 Internal Server, all files have 755

Re: Perl dont work?

Posted: Mon Dec 21, 2015 6:57 am
by skurudo
Works fine, but need a little adjustment in apache virtual host:

Code: Select all

<Directory /your-directory>
Options +ExecCGI
AddHandler cgi-script .cgi
DirectoryIndex index.cgi
</Directory>

Re: Perl dont work?

Posted: Mon Dec 21, 2015 6:58 am
by skurudo