Auto-install WordPress & staging upon account creation

sozotech

Well-Known Member
Jul 26, 2013
108
5
68
cPanel Access Level
Root Administrator
I know this has been asked before in a slightly different manner. We want to create a WordPress optimized hosting plan. We're using ModulesGarden WordPress Manager which relies on Softaculous to install WP and manage some functions like backups, restores, cloning, staging etc.

My question is when WHMCS fires the Create Account function on cPanel, is there a way to have a hook or another script at the end of that process do the following items.

1) Install WordPress on that domain via Softaculous (not via bash/wp-cli). This way it shows up in the ModulesGarden WordPress Manager.

2) Create a separate unique addon domain called "username.hostingcompanystaging.com" and also have WP installed via Softaculous on that as well?

Any pointers on how to achieve this would be appreciated!

Best regards,
Eric
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463