- Plesk for Linux
How to automatically install WordPress when a subscription is created?
This functionality is implemented in Plesk Extension Application Auto-Provision, which allows automatic installation of a selected application (WordPress, Joomla, and Drupal) on all domains created within a subscription of a selected service plan.
Alternatively, this task can be done using Event Manager interface and bash scripting:
Install WordPress in the Application Vault: Tools & Settings > Application Vault > My Apps > Add App > Select an app from Application Catalog.
Put the script in the attachment on the server to any directory:
# wget https://plesk.zendesk.com/hc/article_attachments/115002510274/wp.sh
Make sure it has executable permissions:
# chmod +x wp.sh
Create a new Service Plan so that new subscriptions created on this plan have WordPress installed: Plesk > Service Plans > Add New.
Go to Tools&Settings > Event Manager and create the following event:
Add event Handler
Event : Physical hosting created
Priority : normal
User : root
Command : wp.sh