|
|
#1 (permalink) |
|
Registered User
Seasoned Poster
Joined in Nov 2003
Lives in Florida Beaches
Hosted on Pass21
43 posts
Gave thanks: 1
Thanked 1 Time in 1 Post
|
I searched this great forum and found script examples but no further assistance.
I have a bronze re-seller package. I wish to use either the perl or php script I found here to set up accounts using my remote key. I am familiar with PERL and I can write basic scripts. I am learning PHP more by the day. I need a little help on how to query/implement the script I found here (http://www.cpanel.net/manual/remoteaccess.html) to set up a new cpanel/hosting account. Or if that is even possible. E.G. have a user enter their requested username/domainname and whatever after they are redirected from paypal. (or send the query in at some other point, not really relevant to my problem.) So, the account will be created "automatically". I tried various attempts/guesses to no avail. I searched and searched for a solution before I posted here. I thank anyone in advance who can point me in the right direction or provide example scripts that are ready to rock with minor configs. Thanks again. I always get help here... :surpass:
__________________
My wife and I were happy for 30 years, then we met. How many sound techs does it take to screw in a lightbulb? I don't know, I just do sound. Support your local music. |
|
|
|
|
#2 (permalink) |
|
the one who was
Super #1
Joined in Jul 2003
Lives in Memphis
1,967 posts
Gave thanks: 0
Thanked 3 times
|
You won't need the remote key, as this is used if you are setting up an account on a server other than where you are located, which you can't do anyways.
I think the issues you will also find in making your own script to do this is going to be a big hassle in the long run. Lot's of things to deal with and unless you are willing to spend the long hours to build the scripts, I would highly recommend AutoPilot or some other program that is available. Why re-invent the wheel?
__________________
Patrick Warnings: The program(s) might crash unexpectedly or behave otherwise strangely. (But of course, so do many commercial programs on Windows.) --www.gimp.org |
|
|
|
|
#3 (permalink) |
|
Registered User
Seasoned Poster
Joined in Nov 2003
Lives in Florida Beaches
Hosted on Pass21
43 posts
Gave thanks: 1
Thanked 1 Time in 1 Post
|
Yes, I would love autopilot. Just need a few signups to fund it first.
However, I just now found the solution. In the WHM under "Setup remote access key" there is a link at the bottom. The link is: "A reference implmentation of an automatic account creation script is avalible here" (click the word here and download the script) Works great! Just use winrar or whatever to decompress the download. To configure just open config.pl and edit these lines: $contactemail = 'Your contact email'; $contactfrom = 'Your from Email'; $whm->{user} = 'YOUR ACCOUNT LOGIN USERNAME'; $whm->{accesshash} = 'Insert your remote key here all on one line with no spaces'; $whm->{usessl} = 1; #Change to 0 if you do not have SSL (not recommended but, works) Upload the scripts in the same directory structure and cmod755. Hit the signup.cgi to test. Customize signup.cgi and dosignup.cgi to fit your site! I should have found this sooner. I guess I did not follow my own "Read the Screen" philosophy! Hope this helps someone else who forgets to read the screen! :P :surpass:
__________________
My wife and I were happy for 30 years, then we met. How many sound techs does it take to screw in a lightbulb? I don't know, I just do sound. Support your local music. |
|
|
|
|
#4 (permalink) |
|
the one who was
Super #1
Joined in Jul 2003
Lives in Memphis
1,967 posts
Gave thanks: 0
Thanked 3 times
|
That's interesting. The remote key really shouldn't be needed, but if it works, leave it alone..
![]() Or do like me and go and break it. :jester:
__________________
Patrick Warnings: The program(s) might crash unexpectedly or behave otherwise strangely. (But of course, so do many commercial programs on Windows.) --www.gimp.org |
|
|