• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

Stumped Plesk Virgin

C

crash0verride

Guest
Hi,

My company is moving to plesk shortly and I have been tasked with heading up the migration. I have read the manual from cover to cover, and either I am thicker than I thought or I am missing some pages from said manual. As a seasoned unix/linux admin, I want to use the shell interface as much as possible, partly because it is easier, and partly because I want to script alot of activities. I have a couple of basic questions, which if answered will no doubt lead onto some more complicated question.

First let me give a little background:

We will be moving about 10,000 domains to the plesk architure. We are keeping Mail seperate, so just the admin of each site will need to login, therefore we will only be creating about 10,000 client accounts.

My first question is, how do you assign client accounts to domains, and vice-versa? I mean if I create a client account called client 01, how do I tell the system that client01 is admin of domain01?

My Second question is, when I set up a client account, is there a way of setting up a webuser account by the same name using the same credentials?

If any one can clue me in a little I would be extremely grateful. I am sure this has been asked before, but I have scoured the forums and have been unable to find the answer I need.
 
Hey,

Sounds like quite the project, good luck - hope it all goes smooth.

To answer your first question; when logged into Plesk go to the "Clients" tab and add your client. Then to create a domain under that client, go back to "Clients", click on said client and click the "Add New Domain" button. The domain you create will be owned by that client. As an alternative, you can go directly to the "Domains" tab, click "Add New Domain" then follow the prompts to be asked which client you want to create the domain under.

Hope this helps.

Luke
www.catch22media.com
 
Sorry for not replying until now, I have been busy with St Patricks day celebrations.

Thank you Lpittman for showing me the web interface, and thanks to breun also. I have already started using the command-line tools. There is one called domain and one called client. I have created a domain template and a client template, and I have successfully added domains and I have added clients, but from the command line I have not found a way to point a client at a domain.

Has any one any ideas?
 
Im stumped again :(.

Here is the code that I have written so far. It reads from a csv file which has the domain, username and password as the first 3 columns, and creates a domain and client account using the values.

#!/bin/sh
awk -F , '{print "/usr/local/psa/bin/client -c "$2" -name "$2" -passwd "$3" && /usr/local/psa/bin/domain.sh -c "$1" -clogin "$2" -dom_user false -www true -hosting true -hst_
type phys -ip 192.168.1.1 -clogin "$2" -login "$2" -passwd "$3" -hard_quota 20 -cgi true -perl true"}' list.csv | sh

The only problem is when I run it I get:

SUCCESS: Creation of client 'test01' complete.
An error occured during domain creation: unable to check ip address existing in ip pool: ip pool id is not defined.

I have taken the real IP out, so you dont need to tell me I am using the default gateway.
 
Back
Top