• 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!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.

CLI vhost setup example?

yabado

Regular Pleskian
I have to move a lot of customers from old home-grown server setup to a plesk panel powered server.

I want to use the CLI to do this and wondered if there was a tutorial showing how to setup the customer and add the subscription/hosting plan for that customer?

I looked over the docs and tested them, but the service plan never shows that hosting is added.

# ./customer --create JDoe -name "John Doe" -passwd sample -country US -notify false
# ./subscription --create example.com -owner admin -service-plan "Default Domain" -ip 192.168.1.100 -login JDoe -passwd "user pass"


I get the email saying that the do moan was setup, but the domain does not show that hosting is affiliated with it.


Thanks for any help or guidance anyone can give.
 
Sorry, but I don't understand your statement "the service plan never shows that hosting is added". What do you mean? How Service Plan should it show? Where? Why creating subscriptions with corresponding utility is not enough for you? What do you mean "domain does not show that hosting is affiliated with it"? Please be more specific. Thanks.
 
Here is a picture to help you understand.

This is what the subscription looks like after it is added via CLI commands shown in first post.

exampledotcom_1A2358B5.png


The subscription should show all the web hosting features/settings right?

example3dotcom_1A235A6F.png
 
Please add the string "-hosting true" , because the hosting - setting is "false" by default.
 
# plesk bin subscription --help
..........
-hosting <true|false> Switches on/off web hosting for domain (default: false).
-hst_type <phys|std|frm> Sets up the specified hosting type (default: phys).
 
Please add the string "-hosting true" , because the hosting - setting is "false" by default.
Thanks , that was the part I was missing.

One other thing is to make sure that the login (ftp) does not use same username that the main owner uses.

Final command , that worked, looks like so...

./subscription -c example6.com -hosting true -hst_type phys -ip 1.2.3.4 -owner JDoe -login john -passwd sample
 
Back
Top