SymptomsIt is needed to change modes of application pools for all domain in Parallels Plesk Panel (PP), or redistribute application pools between domains.
For example, all domains are configured to use a shared application pool, and some of the applications crash it, bringing all other domains down.
Another case is when there are a lot of domains (>1k), and a separate application pool for each of them is unwanted. In this case a single application pool could be shared between all subscriptions.
Switching application pool mode for a single domain could be done in PP web interface, but for many domains, manual switching would take a very long time.
ResolutionTo automate these operations, you can use special scripts, designed for that. Here are 3 use cases:
a) Switch all customer’s domains to a shared application pool:
To create shared pool, Please choose a customer that will be sharing a pool, and do the following in PP web interface:
1) Go to this customer's settings -> "IIS Application Pool", and press the “Switch On” button to enable dedicated application pool.
2) Remember the login of this customer (it is shown in customer's information, "Access to Panel" section)
3) Download this "switch_customers_subscriptions_to_shared_pool.zip" archive and unzip it. Launch the resulting script on the server.
You will be prompted for the PP admin password and for the customer's login.
After the process finishes, all subscriptions of this customer will be switched to his application pool.
b) Switch all domains to use dedicated application pools (in case if all of them are using shared, and some applications crash it).
Download this "switch_all_subscriptions_to_dedicated_pool.zip" archive and unzip it. Launch the resulting script on the server.
c) Switch all domains to use a shared application pool:
Download this "switch_all_subscriptions_to_shared_pool.zip" archive and unzip it. Launch the resulting script on the server.
All domains that were using a dedicated pool will now use a shared pool. Either a PP default pool, or a pool of the customer, which the domain belongs to.