Plesk

How to create a domain / subdomain / alias in Plesk

Question

Answer

Creating a domain / subdomain / alias in Plesk

 

Note: Some resellers / customers may not see these options in their control panel due to permission limitations defined in service plan / subscription settings. Visit this KB article for details.

  • In Power User view:

    • Go to Websites & Domains and click Add Domain / Add Subdomain / Add Domain Alias.
  • In Service Provider view:

    Note: To create a domain for a customer / reseller, go to Customers or Resellers > <customer / reseller_name> > Add Domain.

    • Domain

      Go to Domains and click Add Domain.
      In this way, creating a domain will also create a new subscription. This domain will be the main domain of this subscription.

      Go to Subscriptions > example.com and click Add Domain.
      In this way, a new domain will be created inside an existing subscription as an additional domain.

    • Subdomain

      Go to Domains and click Add Subdomain.

    • Domain Alias

      Go to Domains and click Add Domain Alias.

 

Creating a domain / subdomain / alias via a command-line interface

 

  • Domain

    • To create a domain with a new subscription, use the plesk bin subscription utility. To learn more about this utility and its options, go to its documentation page - subscription for Linux / subscription.exe for Windows Server.

      Run the following command to show the help page:

      # plesk bin subscription --help

      Example
      The following command creates the domain example.com and a subscription of the same name for the Plesk customer John Doe whose login is john_doe, associated with the service plan Default Domain, assigned to the IP address 203.0.113.2, with the system user john and the password password:

      # plesk bin subscription --create example.com -owner john_doe -service-plan "Default Domain" -ip 203.0.113.2 -login john_doe -passwd "password"

    • To create an additional domain within a subscription, use the plesk bin site utility. To learn more about this utility and its options, go to its documentation page - site for Linux / site.exe for Windows Server.

      Run the following command to show the help page:

      # plesk bin site --help

      Example
      The following command creates the additional domain example.net under the subscription example.com with document root directory /example.net (Full path /var/www/vhosts/example.com/example.net):

      # plesk bin site --create example.net -webspace-name example.com -www-root /example.net

 

  • Subdomain

    To create a subdomain, use the plesk bin subdomain utility. To learn more about this utility and its options, go to its documentation page - subdomain for Linux / subdomain.exe for Windows Server.

    Run the following command to show the help page:

    # plesk bin subdomain --help

    Example
    The following command creates the new subdomain subdomain.example.com for the main domain example.com with document root directory /subdomain.example.com (Full path /var/www/vhosts/example.com/subdomain.example.com):

    # plesk bin subdomain --create sub -domain example.com -www-root /subdomain.example.com

&nbsp…

Exit mobile version