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

Changing PHP Handler doesn't work from GUI

ilijamt

Basic Pleskian
After restoring Plesk installation from backup I started having a lot of problems, even though I had a full backup.

If I try to change the handler to FastCGI from the GUI, it updates but the domain is not set to use FastCGI, but if I do the same from the command line it works I don't have any issues, but if I update the service plan to use FastCGI it won't switch it to the correct one.

Is there a way to make this work so I don't have to go over all of the domains to enable this, but even so if I do, next time I want to switch I need to do it from the command line.

Code:
             id:  display name:  full version:  version:    type:                               cgi-bin:  php-cli:                               php.ini:  custom:
             cgi         5.4.41         5.4.41       5.4      cgi                      /usr/bin/php5-cgi                            /etc/php5/cgi/php.ini    false
         fastcgi         5.4.41         5.4.41       5.4  fastcgi                      /usr/bin/php5-cgi                            /etc/php5/cgi/php.ini    false
          module         5.4.41         5.4.41       5.4   module                      /usr/bin/php5-cgi                            /etc/php5/cgi/php.ini    false
  php-5.5.26-cgi         5.5.26         5.5.26       5.5  fastcgi  /usr/local/php-5.5.26-cgi/bin/php-cgi            /usr/local/php-5.5.26-cgi/etc/php.ini     true
  php-5.6.10-cgi         5.6.10         5.6.10       5.6  fastcgi  /usr/local/php-5.6.10-cgi/bin/php-cgi            /usr/local/php-5.6.10-cgi/etc/php.ini     true

Code:
/usr/local/psa/bin/domain --update <domain> -php_handler_id php-5.6.10-cgi

Also changing the plan to a different version of PHP doesn't work, it will not update the the configuration files the version will still remain the same.
 
Also running the SQL;

Code:
select dom_id,php,php_handler_id,name from hosting left join domains on domains.id = hosting.dom_id where php='true'

Doesn't reflect the changes, if I issue the command to change the domain from the command line, then the database will have the correct entry, otherwise no, it won't change.
 
Back
Top