Subdomain.exe utility allows you to manage subdomains. Using this utility, you can:
Subdomain.exe is located in %plesk_dir%admin\bin\. Available commands and options are listed in tables below.
Usage: subdomain.exe command <subdomain> [options]
Example of usage:
subdomain.exe --create subdomain2 -domain domain1.com -hard_quota 50 -ssi true
Available commands:
Command |
Parameter |
Action |
Example |
|
<subdomain> |
creates a subdomain for the domain specified with the -domain option |
To create subdomain for Somewhere.com:
|
|
<subdomain> |
updates an existing subdomain for the domain specified with the -domain option |
Examples of updating various parameters of subdomain are provided further down this table |
|
<subdomain> |
removes the subdomains specified with the -subdomains option from the domain, specified with the -domain option. |
To remove subdomain1.somewhere.com from somewhere.com domain:
|
|
|
retrieves information on all subdomains |
To retrieve information on all subdomains of somewhere.com domain:
|
|
|
displays help on the utility usage |
To see help file on the utility usage:
|
Available options:
Option |
Parameter |
Note |
Example |
|
<domain_name> |
is used for specifying the main (parent) domain the subdomain will be created for |
To create subdomain for Somewhere.com:
|
|
<new_subdomain> |
changes a subdomain name to the specified one (the option cannot be used when creating new subdomains) |
To change the existing subdomain name subdomain1.somewhere.com to the new one - subdomain1_new.somewhere.com
|
|
<native|main> |
uses a separate FTP user account for this subdomain (native) or the same FTP user as for the main domain (main). By default the FTP account of the main (parent) domain is used for managing the subdomain |
To use separate FTP account for subdomain (subdomain1.somewhere.com):
|
|
<login> |
FTP user login name (can be specified if a separate FTP account is used) |
To enable user of separate FTP account to login to FTP:
|
|
<password> |
FTP password (no password is set by default, and it may be specified when a separate FTP account is used) |
To enable user of separate FTP account to login to FTP using password 'New Password':
|
|
<plain|crypt> |
FTP user password type (default:plain)
|
To set encrypted password for johndoe user of subdomain1.somewhere.com subdomain:
|
|
<MB> |
hard disk quota (use 0 for "unlimited", which is set by default). You can specify this option when using a separate FTP account. |
To set hard disk quota of 10Mb for separate FTP account:
|
|
<true|false> |
Turns on/off FrontPage support on subdomain (default: false) |
To enable FrontPage support for subdomain1.somewhere.com:
|
|
<true|false> |
FrontPage authoring (default: false) |
To enable FrontPage authoring for subdomain1.somewhere.com:
|
|
<true|false> |
SSI support on a subdomain (default: false) |
To enable SSI support for subdomain1.somewhere.com:
|
|
<true|false> |
SSI support for *.html, *.htm on a subdomain (default: false) |
To enable SSI support for *.html and *.htm for subdomain1.somewhere.com:
|
|
<true|false> |
PHP support on a subdomain (default: false) |
To enable PHP support for subdomain1.somewhere.com:
|
|
<true|false> |
Run PHP as ISAPI extention (default: false) |
To enable PHP running as ISAPI extention for subdomain1.somewhere.com:
|
|
<true|false> |
CGI support on a subdomain (default: false) |
To enable CGI support for subdomain1.somewhere.com:
|
|
<true|false> |
PERL support on a subdomain (default: false) |
To enable PERL support for subdomain1.somewhere.com:
|
|
<true|false> |
ASP support on a subdomain (default: false) |
To enable ASP support for subdomain1.somewhere.com:
|
|
<true|false> |
ASP.NET support on a subdomain (default: false) |
To enable ASP.NET support for subdomain1.somewhere.com:
|
|
<true|false> |
Python support on a subdomain (default: false) |
To enable Python support for subdomain1.somewhere.com:
|
|
<true|false> |
Coldfusion support on a subdomain (default: false) |
To enable Coldfusion support for subdomain1.somewhere.com:
|
|
<subdomain[,...]> |
used for specifying the subdomains to be removed or for retrieving subdomain information (the --remove and --info commands respectively). By default, the --info command outputs information on all existing subdomains. |
To remove subdomain1.somewhere.com of somewhere.com domain:
To retrieve information on subdomain1.somewhere.com:
|