Web Hosting Talk







View Full Version : Possible to load software depending on


Skeptical
01-14-2009, 04:43 AM
Is it possible to have a custom script run when an account is created using WHM or WHMCS? I'd like to install WordPress with a custom template with certain packages (only specific packages). I'd also like to be able to send the install a certain argument so that it knows which specific files to load and which sql scripts to import.
With WordPress, these are the steps that need to take place:
- Copy the WordPress tgz file to the user's home directory. This file is specified by the customer when he orders. Each file contains a different template.
- Untar the files
- Create a database and database user
- Import the sql files from the sql import file. This file is also specified by the customer when he orders.
- Set the variables in the config file (directory path and mysql info)