Jan
2009
Running Perl scripts in /httpdocs
If you do not want to run your Perl scripts in Plesk’s default cgi-bin/ directory, you can edit the httpd.conf file to tell Apache where CGI scripts can be ran.
Edit your httpd.conf file as root and enter a new VirtualHost block at the bottom of the file. In that VirtualHost block, you’ll need to enter the following:
ScriptAlias /cgi-bin/ /var/www/vhosts/yourdomainhere.tld/httpdocs/path/to/directory
Restart Apache and if it starts up just fine, go ahead and try running a Perl script in the directory you specified in the httpd.conf file. Make sure to have the file executable and that you have Perl support enabled in Plesk.