Knowledgebase
PHP not working on subdomains
Posted by zz-James Moir on 21 June 2016 04:07 PM

Issue

When you create a subdomain in Plesk, such as host.mydomain.co.nz, and try to access a PHP page on this subdomain the following error is displayed:

Forbidden

You do not have permission to access this document.

Web Server at mydomain.co.nz

Solution

The problem occurs because some services are not enabled for the subdomain. Net24 runs PHP under a suexec environment with FastCGI, therefore it is necessary to enable both CGI and FastCGI as well as the PHP option.

You can check these options in Plesk by going to 'mydomain.co.nz > Subdomains', then click on the subdomain to display the Manage subdomain page. The screenshot below shows the options which should be enabled to allow PHP to function correctly.