PDA

View Full Version : cpanel password retrieval



toggle
06-19-08, 10:27 AM
Im implementing a cms that automatically installs when an account is created.
The only problem is i need the cpanel password that gets created at time of creation so i can use it in the script to create the database and users.

Whmcs uses [password] in its emails. is there a way to parse that from whmcs in any way. or any way in php to get the cpanel password?

Cheers
Toggle

brianoz
06-24-08, 03:12 PM
If you have root access to the servers, you can run a script from postwwwacct that does that for you - all the variables are there, though you'll need to check out the info at cpanel.net to find out the exact syntax. Otherwise you should be able to use a WHMCS "Action Hook" to get the result you want.