Can anyone help me with this ? [moved]

phpfriend

Registered
Sep 12, 2006
1
0
151
Hello,
I am planning to make a site related to my hosting business.
what I want to be done is , when people fill the form with their domain name , automatic account gets created in WHM , and a predefined PHP file gets uploaded to that domain's ftp. and that php file will be connected to a central database.
I have been doing research and found WHMAP that does provide automatic creation of accounts in WHM.
but my other problem still remains unanswered , can someone help ?
Is there any option in cpanel for that
Thanks
 

ujr

Well-Known Member
Mar 19, 2004
290
0
166
I think you should probably just hire someone who can do it for you if you can't figure it out.

If you have the php skills, search around here on how to use cpanel's api, you could do the account creation part easily. You could also place the php file you wanted to upload to the site in the default folder that cpanel uses and copies to the new user directory too. Having that php file connect to a "central database" using a mysql username and password, may not be a very smart thing to do.

Well, good luck.
 

moogle

Well-Known Member
Apr 7, 2003
94
0
156
Preloading files? Use the skeleton directory. That's what it's made for :)