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

Wrong PHP Handler after Upgrade

llaehn

New Pleskian
Hi,

i have a problem. after upgrade my Server (different Servers) the php-fpm dont serve the php files (12.5.30 Update #27, zuletzt aktualisiert: 29. März 2016 01:18:29).
the browser would download the php files as text.

i have nothing changed in my config.
i compare old config from plesk with the new one and found this

OLD:
Code:
  <IfModule mod_proxy_fcgi.c>

  ProxyPassMatch ^/(.*\.php(/.*)?)$ unix:///var/www/vhosts/system/myservername/php-fpm.sock|fcgi://127.0.0.1:9000/var/www/vhosts/myservername/httpdocs

  </IfModule>

NEW:
Code:
                <IfModule mod_proxy_fcgi.c>
                        <Files ~ (\.php$)>
                                SetHandler proxy:unix:///var/www/vhosts/system/myservername/php-fpm.sock|fcgi://127.0.0.1:9000
                        </Files>
                </IfModule>

why this changed?

br
lars
 
Last edited:
Hi,

thanks for reply.
i'am a little bit confused because the proxymatch directive works and the sethandler don't execute the php.

the kb is right. the psa-phpfpm-configurator and the libapache2-mod-proxy-psa are not upgraded. but the plesk reported no errors after the upgrade.
i remove the packages and use the autoinstaller.

after that i execute /usr/local/psa/admin/bin/httpdmng --reconfigure-all to rewrite the conf files.

now it works.

br
lars
 
No problem, glad it helped.

Yeah, depending on how the was upgrade is run, you may not get an error. For instance if run from the update link on the Plesk panels home page.

Regards

Lloyd
 
Back
Top