• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved PHP not running on subdomain - File Not Found

OlgaKM

Basic Pleskian
I set up a subdomain for testing purposes. After trouble running my scripts, I decided to test if PHP was working using a simple phpinfo script. When I try to request http://subdomain.domain.com/phpinfo.php, I get a 404 File Not Found message. HTML files work fine. Same PHP file on the main domain works fine (as do other PHP files). The PHP handler on the subdomain is nginx + php-fpm, which is the same as the main domain. I tried changing it to Apache + FastCGI, but this made no difference. Looking at the nginx files for both domains, the settings seem to be identical except for the path to the socket file. Both socket files exist with same ownership and permissions.

I have seen a few similar complaints on these forums and elsewhere online, but no steps described helped me. In most of the cases, the problem was resolved by reconfiguring the domain (this didn't help me). I have also tried removing the subdomain and re-creating. This was no help either.

Interestingly, when I click "View the phpinfo() page" from the PHP Settings page, I get "Error: Unable to retrieve information about the PHP configuration."

There are no messages in any of the vhost logs.

I'm completely at a loss. Any ideas for troubleshooting this?
 
Never mind. It is a problem I created for myself by editing the Plesk virtual host templates. As my changes were custom, I don't think explaining what the error was would be helpful here.
 
Back
Top