The subdomain.exe utility is designed to manage subdomain accounts. The utility allows the following:
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 |
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 |
|
|
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 |
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 |
|
|
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 |
|
|
Specifies the type of the FTP user account which is used for managing subdomain. If it is set to If it is set to Requires Is |
To use a separate FTP account with login name John and password sample for managing forum.example.com: >subdomain.exe --update forum -domain example.com -ftp_user native -login John -passwd sample |
|
|
Specifies the FTP user login. Can be specified only if the subdomain uses its own FTP account. |
To set the login name JohnDoe for the FTP user: >subdomain.exe --update photo -domain example.com -ftp_user native -login JohnDoe -passwd sample |
|
|
Specifies the FTP user password. Is not set by default. Can be specified only if the subdomain uses its own FTP account. |
To set the password sample for the FTP user with login name JohnDoe: >subdomain.exe --update photo -domain example.com -ftp_user native -login JohnDoe -passwd 12345 |
|
|
Limits the amount of disk space used by a subdomain. Unlimited if set to Can be specified if the subdomain uses its own FTP account. |
To restrict the disk space available for subdomain photo.example.com to 100 MB: >subdomain.exe --update photo -domain example.com -ftp_user native -hard_quota 100M |
|
|
Allows/Prohibits granting to the Parallels Plesk Panel IIS User the full access permission for the subdomain May be required for web applications correct functioning, but is insecure. Is Available since Plesk 8.1.1. |
To allow Parallels Plesk Panel IIS User write and modify files and subfolders in >subdomain.exe --update sample -domain example.com -write_modify true
|
|
|
Allows/Prohibits publishing site with Sitebuilder. Is Available since Parallels Plesk Panel 7.6. |
To allow publishing site with Sitebuilder for subdomain sample.example.com: >subdomain.exe --update sample -domain example.com -sb_publish true |
|
|
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 Available since Parallels Plesk Panel 8.1.1. |
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 |
|
|
Sets the PHP version on the subdomain. Is |
To select PHP5 support on the subdomain sample.example.com: >subdomain.exe -u sample -domain example.com -php_version 5 |
|
|
Enables/Disables running PHP as an ISAPI extension. Is Deprecated since Parallels Plesk Panel 8.3. Use |
To enable running PHP as an ISAPI extension on subdomain sample.example.com: >subdomain.exe -u sample -domain example.com -php-isapi true |
|
|
Sets PHP support mode. Is |
To enable running PHP as an ISAPI extension on the subdomain sample.example.com: >subdomain.exe --update sample -domain example.com -php_handler_type isapi |
|
|
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 Python support on the subdomain. Is |
To enable Python support on sample.example.com: >subdomain.exe --update sample -domain example.com -python true |
|
|
Enables/Disables ColdFusion support on the subdomain. Is |
To enable ColdFusion support on sample.example.com: >subdomain.exe --update sample -domain example.com -coldfusion 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 type of hosting used on the subdomain (i.e. physical or virtual). Is Available since Parallels Plesk Panel 7.6. |
To specify the use of virtual hosting on forum.example.com: >subdomain.exe --update forum -domain example.com -hst_type virt |
|
|
Specifies the root directory for a virtual subdomain within the Is Requires concomitant use of the Available since Parallels Plesk Panel 7.6. |
To specify the /httpdocs/sampledir folder as the root directory for the virtual subdomain sample.example.com: >subdomain.exe --create sample -domain example.com -hst_type virt -www_root /httpdocs/sampledir -create_phys false |
|
|
Creates/Doesn't create the root directory for a virtual subdomain within the Is |
To create the /httpdocs/pics folder as the root directory for virtual 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 Available since Parallels Plesk Panel 7.6. |
To choose version 2.0 of Microsoft ASP.NET on sample.example.com: >subdomain.exe -u sample -domain example.com -asp.net_version 2.0 |
* The option is used only for Parallels Plesk Panel virtual subdomains. By using this option, you can only specify an already existing subfolder in the httpdocs directory.