On the system we use WHM on, all of our clients' accounts require a database and user created in MySQL. We have some custom software installed by the skeleton files which we'd like to be capable of automatically configuring itself the first time its run. However, the actual web scripts can't create the database and user itself.
We do not want to require users to login to cpanel/WHM and have to manually create teh database and user with the MySQL tool. We would like for all of that to be created automatically when we create the account, and have the database name, user name, and password stored in the client's home dir, and then the web software's install script can get the data out of there to create its tables and run its config utility.
Is there a way to do this without creating an entire addon script? If not, does anyone have any pointers on how to create an addon that registers a callback to be invoked when a new account is created?
Thanks!
We do not want to require users to login to cpanel/WHM and have to manually create teh database and user with the MySQL tool. We would like for all of that to be created automatically when we create the account, and have the database name, user name, and password stored in the client's home dir, and then the web software's install script can get the data out of there to create its tables and run its config utility.
Is there a way to do this without creating an entire addon script? If not, does anyone have any pointers on how to create an addon that registers a callback to be invoked when a new account is created?
Thanks!