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.
plesk bin subdomain.exe --create sample -domain example.com -hard_quota 250M -ssi true
Commands
Command | Parameter | Description | Example |
---|---|---|---|
--create or -c |
<subdomain name> |
Creates a subdomain on the specified domain. Requires Use the asterisk (*) symbol to create a wildcard subdomain. |
To create the subdomain sample on the domain example.com: plesk bin subdomain.exe --create sample -domain example.com … |