SBDavid
May 17th, 2010
May 17th, 2010
Running CGI scripts in the httpdocs directory without mod_perl in Plesk
Running CGI scripts in the httpdocs directory without mod_perl in Plesk
To accomplish this on a per domain basis you will need to create a vhost.conf in the conf directory at /var/www/vhosts/serverbuddies.com/ with the following code.
<Directory /var/www/vhosts/mt-example.com/httpdocs>
<Files ~ (\.cgi$)>
SetHandler cgi-script
Options ExecCGI
allow from all
</Files>
</Directory>
Then run the following command to enable the change.
/usr/local/psa/admin/sbin/websrvmng -v -a
Now, all files with ‘.cgi’ extension will be executed as usual CGI scripts in /cgi-bin/.
To enable CGI in httpdocs for the whole server just uncomment the “AddHandler cgi-script .cgi” directive in httpd.conf and restart Apache.
Reference: http://parallels.com/