Shahaneh

Member
Feb 24, 2009
6
0
51
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?
 

Shahaneh

Member
Feb 24, 2009
6
0
51
Thanks a lot for replying... but I looked at thet link and didn't understand what I have to do..:(:confused::confused: please if it's possible could u explain
best regards....
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
Thanks a lot for replying... but I looked at thet link and didn't understand what I have to do..:(:confused::confused: 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.
 

Shahaneh

Member
Feb 24, 2009
6
0
51
thanks a lot:)...
one more question too.... how can I find cpanel comands? are there special commands for cpanel?
 

Shahaneh

Member
Feb 24, 2009
6
0
51
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?
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
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.
 

Shahaneh

Member
Feb 24, 2009
6
0
51
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 ? :confused::confused:
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
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 ? :confused::confused:
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.
 

Shahaneh

Member
Feb 24, 2009
6
0
51
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
 

Kailash1

Well-Known Member
Nov 27, 2006
260
6
168
cPanel Access Level
Root Administrator
Twitter
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