Forum Moderators: coopster
I need cpanel->"my customized CMS" integration. Havent seen something like this anywhere even if it should work. this is what i want:
When user signs up on my "portal" it automatically creates him an account in cpanel(if it is availible) with 0mb space and 0mb bandwith so he doesnt really get a hosting at all.
Now if he posts enough(has enough posts per day) i would want from him to be able to request the hosting(actually unlimit the hosting, to be precize). And then there would be the link to his cpanel where he can use it after "unlimiting".
Now, i want from it to syncronize automatically my CMS -> with cpanel lets say on the first day of the month: If he hasnt posted enough he loses his hosting and he can get it back again when he posts(activate it again through CMS).
In that way free hosting would be completely automatized.
Final solution would be free hosting service where users get what they deserve, and they are in their own control of it.
Im not sure if this can be done in PHP, since i have some skills with it, but not with CGI,PERL. If not, i would be looking forward for learning it.
Im looking for code, right documentation to do this, good links, - actually antything. Any response would be helpful.
Please dont say that if i cant do it i should read all the documentation and i will know it... i m asking you for advice here. Just write anything you can, after you have read this "not-that-short" text. Thanks in advance.
Before proceeding, please note that while writting my message i have assumed that "CPANEL" is provided by your domain host and not coded by you.
To me, it appears like more of managerial issue then core programming thing because integration of your cms with cpanel will first need to have a few questions answered before you would like to proceede
1) Obviously, which langunage is cpanel coded in and which langunage is your cms in (your CMS is php but whats cpanel in?)
2) The main thing will be communication between your cms and cpanel, now a simple question i would like to put is, as you said "it automatically creates him an account in cpanel(if it is availible)" , How would Cpanel tell your cms that the requested account is not available, lets say.?
3) This could or should required you to use database of cpanel, which i think would be not allowed.
4) All above questions might have a very simple answer "They have provided me Cpanel API to deal with", if thats the case, yes then this can be done in PHP.
Idea is simple, if you have a way to establish proper communication channel between your cms and cpanel, then it won't be that hard.
Regards