• 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

Set PHP-Mode for all Domains

SuiCo

New Pleskian
Hi forum

We're migrating an old Plesk 9.5 Server to Plesk 11. On the new system PHP Apache_mod is
no longer available, but fcgi.

The problem we have is, that all migrated sites are imported with PHP-Mode Apache.

I now need to change this mode to fcgi for all domains. How can I do that?
(I did not find any bulk operation possibility in plesk. It maybe is possible by api rpc?)

best regards
SuiCo
 
Try something like this:

# for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select name from domains"`; do /usr/local/psa/bin/domain -u $i -php_handler_type fastcgi -fastcgi true; done
 
Alternatively you can try changing hosting settings in Service Plans > Default Plan or whatever your Service Plans you use for the domains
 
Back
Top