subdomain.exe: Subdomains
The subdomain.exe
utility is designed to manage subdomain accounts. The utility allows the following:
- creating, renaming, and removing subdomains
- enabling scripting languages support for subdomains
- restricting the use of disk space for subdomains
- managing FTP user account for subdomains
Location
%plesk_cli%
Usage
subdomain.exe <command> [<subdomain name>] [
<option 1> <param 1>[,<param 2>,...,<param n>]
[<option 2> <param 1>[,<param 2>,...,<param n>]]
... [<option N> <param 1>[,<param 2>,...,<param n>]]
]
Example
The following command creates the sample.example.com subdomain in the /httpdocs
directory (once not specified explicitly, the default root directory is used), sets the disk space quota for this subdomain to 250 MB, and enables the SSI support for this subdomain.
subdomain.exe --create sample -domain example.com -hard_quota 250M -ssi true
Commands
Command | Parameter | Description | Example |
---|---|---|---|
|
|
Creates a subdomain on the specified domain. Requires Use the asterisk (*) symbol to create a wildcard subdomain. Site visitors will be redirected to this subdomain regardless of the subdomain name they enter in a browser. |
To create the subdomain sample on the domain example.com: subdomain.exe --create sample -domain example.com or subdomain.exe -c sample -domain example.com |
|
|
Updates the subdomain belonging to a specified domain. Requires |
To update the name of the sample.example.com subdomain with a new one - forum.example.com: subdomain.exe --update sample -domain example.com -new_name forum or subdomain.exe -u sample -domain example.com -new_name forum |
|
|
Removes one or more subdomains from a specified domain. Requires |
To remove forum.example.com from example.com: subdomain.exe --remove -subdomains forum -domain example.com or subdomain.exe -r -subdomains forum -domain example.com |
|
|
Suspends the specified subdomain. |
To suspend the website forum.example.com: subdomain.exe --suspend forum.example.com |
|
|
Retrieves the information about subdomains belonging to a specified domain. Requires If the |
To retrieve the info about all subdomains of example.com: subdomain.exe --info -domain example.com or subdomain.exe -i -domain example.com To retrieve the info about the subdomain sample on example.com: subdomain.exe --info -domain example.com -subdomains sample |
|
|
Displays help on the use of the utility. |
To see the help info on the use of this utility: subdomain.exe --help or subdomain.exe -h |
|
|
Displays the list of domains. |
To see the list of all domains on the server: subdomain.exe -l |
Options
Option | Parameter | Description | Example |
---|---|---|---|
|
|
Specifies a parent domain for a subdomain. |
To create the subdomain forum on the domain example.com: subdomain.exe --create forum -domain example.com |
|
|
Changes the name of a specified subdomain. |
To rename subdomain from sample.example.com to the forum.example.com: subdomain.exe --update sample -domain example.com -new_name forum |
|
|
Specifies the HTTP response status code to be used for standard forwarding. |
To use the 302 code for forwarding on the domain sample.example.com, which has the standard forwarding type of hosting: subdomain.exe -u sample.example.com -http_code 302 |
|
|
Sets list of IPv4 and IPv6 addresses for the mail service. |
To set the mail service IP for the subdomain sample.example.com to 192.168.1.2: subdomain.exe -u sample -domain example.com -mail-service-ip 192.168.1.2 |
|
|
Adds/Deletes the www prefix to/from the subdomain name. Is |
To remove the www prefix from sample.example.com: subdomain.exe --update sample -domain example.com -www false |
|
|
Allows or prohibits granting the Plesk IIS user and IIS application pool user the full access permission for the subdomain’s This permission might be required for correct functioning of web applications. Note that this permission, when granted, might seriously compromise website security. Is |
To allow the Plesk IIS user and IIS application pool user write and modify files and subfolders in subdomain.exe --update sample -domain example.com -write_modify true
|
|
|
Allows or prohibits web deploy publishing. Is |
To enable web deploy publishing for sample.example.com: subdomain.exe --update sample -domain example.com -webdeploy true |
|
|
Allows or prohibits using dedicated IIS application pool for a domain. Is used with the Is |
To allow using dedicated IIS application pool on sample.example.com: subdomain.exe --update sample -domain example.com -iis_app_pool true |
|
|
Enables or disables an IIS application pool. |
To turn off IIS application pool for sample.example.com:
subdomain.exe --update sample -domain example.com -iis-app-pool-turned-on false |
|
|
Sets the maximum number of worker processes permitted to service requests for IIS application pool. |
To set the maximum number of worker processes for the sample.example.com dedicated IIS application pool to 3: subdomain.exe --update sample -domain example.com |
|
|
The amount of time a worker process will remain idle before it shuts down. |
To set the length of time worker processes for the sample.example.com dedicated IIS application pool to remain idle to 2 minutes: subdomain.exe --update sample -domain example.com |
|
|
Configures ASP.NET to run in classic mode as an ISAPI extension or in integrated mode where managed code is integrated into the request-processing pipeline. |
To have ASP.NET run in the integrated mode for the sample.example.com dedicated IIS application pool: subdomain.exe --update sample -domain example.com |
|
|
Defines the maximum CPU usage by a domain (in percent). |
To limit the maximum CPU usage by sample.example.com to 3%:
subdomain.exe --update sample -domain example.com -cpu_usage 3 |
|
|
Switches IIS application pool CPU usage monitoring on or off. |
To set up CPU usage settings for the IIS application pool of the domain sample.example.com: subdomain.exe --update sample -domain example.com -cpu-usage-state true -cpu-usage-value 3 -cpu-usage-action KillW3wp -cpu-usage-interval 5 -recycling-by-time 60 -recycling-by-requests 1000 -recycling-by-virtual-memory 5120 -recycling-by-private-memory 10240
|
|
|
Specifies the maximum percentage of CPU time that worker processes in an application pool are allowed to consume over a period of time specified by the If the limit is exceeded, the event is written to the event log and an optional set of events can be triggered. These optional events are determined by the |
|
|
|
Specifies the action that IIS takes when worker processes exceed the limit on CPU time usage.
|
|
|
|
Specifies the reset interval for monitoring of CPU usage by worker processes. |
|
|
|
The period of time after which IIS application pool recycles. |
|
|
|
The maximum number of requests IIS application pool can process before it recycles. |
|
|
|
The maximum amount of virtual memory a worker process can consume before causing the IIS application pool to recycle. |
|
|
|
The maximum amount of private memory a worker process can consume before causing the IIS application pool to recycle. |
|
|
|
Enables/Disables FrontPage support on a subdomain. Is |
To enable FrontPage support on the subdomain sample.example.com: subdomain.exe --update sample -domain example.com -fp true |
|
|
Allows/Prohibits FrontPage authoring before downloading content via FrontPage. Is |
To allow FrontPage authoring on sample.example.com: subdomain.exe --update sample -domain example.com -fpauth true |
|
|
Defines whether FrontPage uses native WAIS search engine, or IIS Index Server for indexing web sites. Is If on Virtuozzo, is |
To make FrontPage use native WAIS search engine on sample.example.com: subdomain.exe -u sample -domain example.com -fp_no_index true |
|
|
Enables/Disables SSI support on the subdomain. Is |
To enable SSI support on sample.example.com: subdomain.exe --update sample -domain example.com -ssi true |
|
|
Enables/Disables SSI support for HTML, HTM files on the subdomain. Is |
To enable SSI support for HTML, HTM files on sample.example.com: subdomain.exe --update sample -domain example.com -ssi_html true |
|
|
Enables/Disables PHP support on the subdomain. Is |
To enable PHP support on sample.example.com: subdomain.exe --update sample -domain example.com -php true |
|
|
Associates the PHP handler with the site. Is |
To enable running PHP as an ISAPI extension on the subdomain sample.example.com: subdomain.exe --update sample -domain example.com -php_handler_id isapi-5 |
|
|
Enables/Disables CGI support on the subdomain. Is |
To enable CGI support on sample.example.com: subdomain.exe --update sample -domain example.com -cgi true |
|
|
Enables/Disables PERL support on the subdomain. Is |
To enable PERL support on the subdomain sample.example.com: subdomain.exe --update sample -domain example.com -perl true |
|
|
Enables/Disables ASP support on the subdomain. Is |
To enable ASP support on the domain sample.example.com: subdomain.exe --update sample -domain example.com -asp true |
|
|
Enables/Disables ASP support on the subdomain. Is |
To enable Miva support on sample.example.com: subdomain.exe --update sample -domain example.com -miva true |
|
|
Enables/Disables SSL support. Set to |
To enable SSL support on the subdomain sample.example.com: subdomain.exe -u sample -domain example.com -ssl true |
|
|
Enables/Disables Python support on the subdomain. Is |
To enable Python support on sample.example.com: subdomain.exe --update sample -domain example.com -python true |
|
|
Specifies the subdomains to remove or to retrieve info about. Required with If the |
To remove sample.example.com and photo.example.com from example.com: subdomain.exe --remove -subdomains sample,photo -domain example.com To retrieve info about forum.example.com: subdomain.exe --info forum -domain example.com |
|
|
Specifies the document root directory for a subdomain, relative to the webspace root directory. |
To specify the directory /site2 as the root directory for the subdomain sample.example.com: subdomain.exe --create sample -domain example.com -www-root /site2 |
|
|
Creates/Doesn't create the root directory for a subdomain within the Is |
To create the /httpdocs/pics folder as the root directory for subdomain pics.example.com: subdomain.exe --create pics -domain example.com -hst_type virt -create_phys true |
|
|
Enables/Disables ASP.NET support on the subdomain. Is |
To enable ASP.NET support on sample.example.com: subdomain.exe --update sample -domain example.com -asp.net true |
|
|
Specifies the version of Microsoft ASP.NET on the subdomain. Is 2 |
To choose version 4.0 of Microsoft ASP.NET on sample.example.com: subdomain.exe -u sample -domain example.com -asp.net_version 4.0 |
|
|
Sets the SSL certificate for the site. |
To set the SSL certificate testcert for the domain sample.example.com: subdomain.exe -u sample -domain example.com -certificate-name testcert |
|
|
Allows/Prohibits standard email notifications on a subdomain creation (Plesk domain administrators and clients). Used with |
To prevent email notifications about the subdomain creation: subdomain.exe --create sample.example.com -notify false |
|
|
Limits the number of HTTP connections. Unlimited is set to |
To limit the maximum number of connections available for the subdomain sample.example.com to 10: subdomain.exe -u sample.example.com -max-connections 10 |
|
|
Limits the network usage. Unlimited is set to |
To limit the maximum network use on the subdomain sample.example.com to 500 KB/S: subdomain.exe -u example.com -traffic-bandwidth 500 |
|
|
Turns on the search engine friendly HTTP 301 redirection. Use ' |
To turn on redirection for the subdomain sample.example.com to www.sample.example.com: subdomain.exe -u sample.example.com -seo-redirect www |
|
|
Sets a description for the subscription to be displayed in Plesk. |
To set a description reading "Custom description" for the subdomain sample.example.com: subdomain.exe -u sample -domain example.com -description "Custom description" |
|
|
Sets a description for the subscription to be displayed in Plesk to the Administrator. |
To set a description reading "Custom description" for the subdomain sample.example.com: subdomain.exe -u sample -domain example.com -admin-description "Custom description" |
|
|
Sets a description for the subscription to be displayed in Plesk to be displayed to a Reseller and the Administrator. |
To set a description reading "Custom description" for the subdomain sample.example.com: subdomain.exe -u sample -domain example.com -reseller-description "Custom description" |