• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Input Plesk internally retains PHP config after switched off for a domain

TimReeves

Regular Pleskian
If a domain was ever registered in Plesk with PHP Support, it still has the entries for that in some tables, even when support has been turned off.

This leads to nasty side effects:
  1. When the PHP config for Plesk is regenerated, the fpm pool configs get generated for Domains w/o PHP support - complete waste of resources.
  2. Even worse: If the PHP handler still noted has been removed (uninstalled) then a new config cannot be generated. Plesk complains that the noted handler has "probably been removed" - true - but it is not in actual use, the removal was a considered act.
To get around this problem, change the noted PHP handler for the problem domain in the Plesk DB:
  • Tools & Settings | Database Servers | Tool-Icon far right (for phpMyAdmin)
  • Select Database psa, then table "hosting"
  • Find the table row you need to change via the column values in "www_root"
  • Change the cell value at "php_handler_id" to one which is still registered,
    e.g. "plesk-php56-fpm" => "plesk-php70-fpm"
Now you can regenerate the web server configuration for that domain at the Plesk GUI.
 
Back
Top