• 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!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.

Issue Applying php settings for a subdomain disables parent domain and viceversa

Theck

New Pleskian
Hello,

I've created a subdomain for testing purposes (dev.maindomain.com) and then I copied the files from httpdocs to the new dev subdomain directory.

When I try to load the page it fails with a 500 server error but no error is shown. It's like the cgi process fails before getting to the PHP. It fails even with an empty php file.

Then I went to the php settings of the subdomain and changed FastCGI settings to Off and the site started working but then the main site shows the same problem and it stopped working.

After some tests it seems that changing any setting in PHP settings fixes one site but make the other fail and vice-versa, if then I go to the failing domain and change something and apply, then this site works and the other stops working.

Any clue? Anywhere I can take a look? No php error is generated in the logs section.

Many thanks,
Xavier Borrut
 
There's no error shown, only "The FastCGI process exited unexpectedly"

Module FastCgiModule
Notification ExecuteRequestHandler
Handler PHP-php
Error Code 0xfffffffe

It's not related to the php code, even an empty php file will drop the error. No lines are added to the error_log.
 
I have not seen this on Linux yet. Is this on Windows? Asking, because there are several articles on it for Windows based Plesk, e.g.

 
Hello again,

Yes, it's a Windows Machine.
I've been trying the links you provided and I fear that no one matches the problem here. I'll try to do an extended explanation of what we did so it may ring a bell.

Initial state
We have a site that we'll call "mainsite.com", working without problems.

What we're trying to achieve
Create a dev.mainsite.com subdomain to test some new features before putting them in the production site.

Steps
1- In Plesk, created the subdomain under mainsite.com
2- Via remote desktop, copied the files from mainsite.com httpdocs to the new dev.mainsite.com folder

Result
Site dev.mainsite.com throws a 500 server error, fast-cgi error.

Tests
1- HTML pages works without problem
2- PHP files does not work even without code (an empty php page fails anyway). It seems it does not reach the php-cgi.exe before failing.
3- Via remote desktop tried to change file permissions to "total control", no change.
4- Deactivated all Web scripting languages but php. No effect.
5- Changed PHP settings (see below)

Strange behaviour
When we changed "basedir" setting from the dev.mainsite.com to "none" and then a basedir error appeared. Then we switched back to the default value and the site started to work. But then, mainsite.com stopped working.
If we then go to mainsite.com PHP settings and change the "basedir" to "none" then the basedir error appear and when we switch it back to default mainsite.com starts working and dev.mainsite.com fails again.

It's important to note that it seems it's not important what setting or value do we change in the PHP settings . We also tried to disable/enable Fast-CGI settings and the effect is the same. When you apply the changes it restores the site and disables the other one.

Many thanks,
 
Back
Top