useful & most used (often forgotten) commands
cd into the domains conf directory:
cd /var/www/vhosts/DOMAIN/
copy the php5 binary into the domains cgi-bin:
cp /usr/local/php5/bin/php-cgi cgi-bin/php5
chown the php5 binary
chown username:psacln cgi-bin/php5
add the following lines to vhost.conf:
<Directory /var/www/vhosts/myperl.co.uk/httpdocs>
AddType application/x-httpd-php5 .php
Action application/x-httpd-php5 /cgi-bin/php5
</Directory>
save it then restart apache
/usr/local/psa/admin/bin/websrvmng -av
add the following to the sites vhost.conf file
AddHandler application/x-httpd-php .htm
open the sites vhost.conf and add the following lines:
<Directory /var/www/vhosts/DOMAIN/httpdocs>
Options ExecCGI
AddHandler cgi-script .cgi .pl
</Directory>