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?
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?
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
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.
thanks a lot...
one more question too.... how can I find cpanel comands? are there special commands for cpanel?
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.
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.
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
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