• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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.

[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