Ask a Question

Knowledge Base

Tools
Categories Rss

PHP not working on subdomains

Reference Number: AA-00188 Views: 955 Created: 2010-08-03 15:49 Last Updated: 2010-08-04 11:21 0 Rating/ 1 Voters

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.



Info Ask a Question