• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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