• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.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