Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 13 of 13
  1. #1
    Member
    Join Date
    Feb 2009
    Posts
    6

    Default cpanel administration

    hi I wanna write script for authomatically creating user account when they pay by arca banc card. are there some cpanel comands ? and how can I write that?

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge Zishan's Avatar
    Join Date
    Aug 2005
    Posts
    104

    Default

    You can use cPanel XML API to create the account. The XML API available functions can be checked at:

    http://www.cpanel.net/plugins/xmlapi/createacct.html

  3. #3
    Member
    Join Date
    Feb 2009
    Posts
    6

    Default

    Thanks a lot for replying... but I looked at thet link and didn't understand what I have to do.. please if it's possible could u explain
    best regards....

  4. #4
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Shahaneh View Post
    Thanks a lot for replying... but I looked at thet link and didn't understand what I have to do.. please if it's possible could u explain
    best regards....
    The XML API is designed so those writing scripts outside of the cPanel/WHM environment can interact with WHM's mechanisms to perform common tasks such as creating accounts.

    Your script essentially calls a special URL and then processes the XML that is returned back by our XML API.

    There are many code samples for the XML API in the developer section of the cPanel forums.

  5. #5
    Member
    Join Date
    Feb 2009
    Posts
    6

    Default

    thanks a lot...
    one more question too.... how can I find cpanel comands? are there special commands for cpanel?

  6. #6
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Shahaneh View Post
    thanks a lot...
    one more question too.... how can I find cpanel comands? are there special commands for cpanel?
    Can you clarify what you mean for "cPanel commands?" Do you mean more API calls you can use in your custom scripts?

  7. #7
    Member
    Join Date
    Feb 2009
    Posts
    6

    Default

    I mean what kind of commands can I use to do same thing in terminale that I do in gui....
    and I wanna ask one question too. I wanna set packages duration . I have 4 packages and each package has 3 different durations 6 month , 1 year and 2 yeard how can I administrate package durations?

  8. #8
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Shahaneh View Post
    I mean what kind of commands can I use to do same thing in terminale that I do in gui....
    and I wanna ask one question too. I wanna set packages duration . I have 4 packages and each package has 3 different durations 6 month , 1 year and 2 yeard how can I administrate package durations?
    You are welcome to look at the source code of the x3 theme to find the APIs it uses to do things in the cPanel interface. The x3 theme is located at /usr/local/cpanel/base/frontend/x3 and is composed of APIs, Javascript and HTML.

    As for "packages duration" - that would be something you manage through whatever billing automation software you are using in conjunction with cPanel/WHM.

  9. #9
    Member Ricardo-san's Avatar
    Join Date
    Apr 2009
    Posts
    23

    Default

    There are several automaton scripts available for cPanel. Two such scripts are Ubersmith and WHMCS. You may consider buying a cheap monthly lease to fulfill your requirements.

  10. #10
    Member
    Join Date
    Feb 2009
    Posts
    6

    Default

    one more question when I create new account and this account's owner upload his site's files. after that I opened account list and click on this account's domain name I it doesn't open but when I clicked on ip address I could see his web page .. what's the mistace that I have such problem ?

  11. #11
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Shahaneh View Post
    one more question when I create new account and this account's owner upload his site's files. after that I opened account list and click on this account's domain name I it doesn't open but when I clicked on ip address I could see his web page .. what's the mistace that I have such problem ?
    To clarify, if you visit their domain in your browser, it does not appear. But if you type the IP address on which their site resides, their website appears?

    If this is the case, make sure that the domain is using your nameservers. You can verify this by performing a WHOIS on their domain.

  12. #12
    Member
    Join Date
    Feb 2009
    Posts
    6

    Default

    mmmmmmmm could u explain how can u do that... when I open my cpanel admin page. choose acount list and there click on ip address I can see this user's site but when I click on domain name it doesn't open

  13. #13
    Member Kailash1's Avatar
    Join Date
    Nov 2006
    Location
    webhostingdiscussion.net
    Posts
    225
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    As mentioned by David, make sure that your web site is using your server's nameservers (which you have created for your servers). Otherwise you can only access your web site using IP address. You will need to change the nameservers of your domain to point to your server until then you will not be able to access your web site using its name.

    Kailash

Similar Threads & Tags
Similar threads
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube