• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

How do I create domains with a php script?

A

allmightyspiff

Guest
Basically what I am trying to do is have a sign up form and once they complete all the steps my script will set them up a domain in plesk.

I would LIKE to use the plesk RPC API for this however I am having trouble finding newbie documentation on this :(

I have been reading this
http://download1.swsoft.com/Plesk/Plesk7.5/Doc/plesk-7.5r-sdk-html/index.html
however I am using plesk 8.0.1, is that information still valid?

However, what I could really use is a simpler guide to get started with because although the information in that guide is very verbose, it would help to have a bit simpler begginer guide right now.

Anyway, if you could point me in the direction of anything that would help me figure out how to work the with plesk 8 API I would be very appreciative because I can't seem to find anything besides that article I lised above :(

Thanks
 
hey there
yes, that information is still valid
check out this section, it is the most important for you

http://download1.swsoft.com/Plesk/Plesk7.5/Doc/plesk-7.5r-sdk-html/docs/cu/win/ch05.html

you can "fill" your php code with the function exec() calling those utilities

something like

exec("/usr/local/psa/bin/domain --create mydomain.com -status true -clogin myclient");

put the other parameters also, so you can create the domain with the options you like.

remember to run also the other utilities to setup hosting, email accounts (if any)...

well, just do some testing and everything should go fine.

see ya

Pedro Padron
 
Thanks for the replys.

Is it ok just chown them to apache so that my script can run them? I was kinda hoping to avoid doing that which is why I wanted to use the plesk's RPC methods. However the documentation of the RPC methods isnt as clear (at least to me) as thier documentation on the shell commands :(
 
Back
Top