• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

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