• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

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