• 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.

[PPP-17663] PHP FPM does not work with PathInfo - leading to 404 errors

H9k

Regular Pleskian
Hello there,
I switched all sites from FastCGI to FPM, only to notice that about 5% of them use seo-friendly URLs without mod_rewrite/.htaccess, meaning that they have URLs like this: http://www.blabla.tld/index.php/about-us
I think all of them are Joomla installations btw.
Anyhow, when using PHP with the FPM handler, I get 404 errors, because it does not interpret that index.php as being a file. When switching back to FastCGI (same PHP version) the website works fine again.
Now I noticed in the apache vhost config file there is such a line
Code:
ProxyPassMatch ^/(.*\.php)$ unix:///var/www/vhosts/system/blabla.tld/php-fpm.sock|fcgi://127.0.0.1:9000/var/www/vhosts/blabla.tld/httpdocs
I suspect that regex is to blame or something? Is this a a known limitation of FPM or just a Plesk bug?
 
I should add it appears that ProxyPassMatch is being parsed/actioned before .htaccess rewrite rules, as otherwise this should work!
 
@paulieG nope, .htaccess works fine with FPM, but websites using PathInfo (now I know the correct term hehe) work without .htaccess and rewrite rules.
It seems that Plesk should correct its ProxyPassMatch to allow for PathInfo to work under FPM, the way you wrote it should work fine.
 
Hello,

I confirm it's a bug with ID PPP-17663 in our internal tracker. I hope it'll be fixed in nearest microupdates.
 
We don't force reconfiguration of all sites during microupdate installation.

You can run:
# plesk repair web -domains-only
To force reconfiguration of all sites.
 
Did not solve the problem. Also tried switching PHP back to FastCGI and to FPM again, but FPM is still broken.
 
Sorry for misleading you. Just checked again: this bug wasn't included in MU#4 but will be included in MU#5.
 
Back
Top