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

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