I now know what's causing the problem - SuExecUserGroup. I commented out the line (like below) and it works fine. How can I get this working without commenting out this line?
Code:
<VirtualHost 94.xx.xxx.xxx:80>
ServerName subdomain.mydomain.com:80
#SuexecUserGroup user group
ServerAdmin "bradley@mydomain.com"
DocumentRoot /var/www/vhosts/mydomain.com/subdomains/subdomain/httpdocs
CustomLog /var/www/vhosts/mydomain.com/statistics/logs/access_log plesklog
ErrorLog /var/www/vhosts/mydomain.com/statistics/logs/error_log
ScriptAlias /cgi-bin/ /var/www/vhosts/mydomain.com/subdomains/subdomain/cgi-bin/
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
<Directory /var/www/vhosts/mydomain.com/subdomains/subdomain/httpdocs>
<IfModule mod_perl.c>
<Files ~ (\.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/var/www/vhosts/mydomain.com/subdomains/subdomain/httpdocs:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/var/www/vhosts/mydomain.com/subdomains/subdomain/httpdocs:/tmp"
</IfModule>
AddHandler cgi-script .cgi
Options -Includes +ExecCGI
</Directory>
</VirtualHost>
Bookmarks