The domain.exe utility serves to manage domains and allows the following operations:
Location
%plesk_cli%
Usage
domain.exe <command> [<domain name>] [
<option 1> <param> [<option 2> <param>] … [<option N> <param>]
]
Example
The following command creates for a client account JohnDoe a domain with name example.com. Then, the command makes the domain available when accessing it with the www prefix, enables physical hosting for the domain, sets FTP login to John with a password sample, binds the domain with IP address 192.0.2.54 (since not specified explicitly, physical hosting is used). Then, the command enables CGI support on the domain and disables sending the domain created notification to Plesk administrator.
>domain.exe --create example.com -owner JohnDoe -www true -hosting true -login John -passwd sample -ip 192.0.2.54 -cgi true -notify false
Commands
Command |
Parameter |
Description |
Example |
|---|---|---|---|
|
|
Creates a domain. Requires Modified in Plesk 9.0. |
To create the domain example.com for the client with the login name JohnDoe: >domain.exe --create example.com -owner JohnDoe -ip 192.0.2.54 or >domain.exe -c example.com -owner JohnDoe -ip 192.0.2.54 |
|
|
Changes properties of an existing domain. |
To limit the amount of disk space that example.com can occupy to 200 MB: >domain.exe --update example.com -hard_quota 200M or >domain.exe -u example.com -hard_quota 200M |
|
|
Removes a domain. |
To remove example.com: >domain.exe --remove example.com or >domain.exe -r example.com |
|
|
Retrieves domain info. |
To retrieve information about example.com: >domain.exe --info example.com or >domain.exe --i example.com |
|
|
Changes an owner of a domain. Requires the If the IP address assigned to the domain is not shared between previous and new owner, you must specify it explicitly using the Modified in Plesk 9.0. |
To make JDoe the owner of domain example.com: >domain.exe --change-owner example.com -owner JDoe |
|
|
Enables a domain. |
To enable example.com: >domain.exe --on example.com |
|
|
Disables a domain. |
To disable example.com: >domain.exe --off example.com |
|
|
Displays help on the use of the utility. |
To output the help info on the use of this utility: >domain.exe --help or >domain.exe -h |
Options
Option |
Parameter |
Description |
Example |
|
|---|---|---|---|---|
|
|
Enables/Disables a domain. Is |
To enable example.com: >domain.exe --update example.com -status true |
|
|
|
Renames a specified domain. |
To rename the domain from example.com to sample.com: >domain.exe --update example.com -new_name sample.com |
|
|
|
Enables/Disables DNS zone. By default, settings from the current server-wide DNS template are used. |
To enable the DNS zone for example.com: >domain.exe -u example.com -dns true |
|
|
|
Allows/Prohibits accessing the domain using URL with the www prefix. Is |
To remove the www prefix from example.com: >domain.exe --update example.com -www false |
|
|
|
Enables/Disables hosting. Is To enable hosting |
To enable hosting for the domain example.com: >domain.exe --update example.com -hosting true -ip 192.0.2.54 -login John -passwd sample |
|
|
|
Sets up the type of hosting. Here, Default value is |
To set up standard forwarding hosting on the domain example.com: >domain.exe --update example.com -hst_type std -login JohnDoe |
|
|
|
Sets the target URL for forwarding hosting types. Required if the |
To set up standard forwarding to the target URL sample.com for the domain example.com: >domain.exe --update example.com -hst_type std -target_url www.sample.com |
|
|
|
Sets the template for domain creation. Used with |
To create the domain example.com basing on "Default Template" for the client with the login name JohnDoe: >domain.exe --create example.com -owner JohnDoe -ip 192.0.2.54 -template "Default Template" |
|
|
|
Forces Plesk to create a domain basing on a given template. Used with the |
To force the creation of the domain example.com based on "Default Template" for the client with the login name JohnDoe: >domain.exe --create example.com -owner JohnDoe -ip 192.0.2.54 -template "Default Template" -force |
|
|
|
Sets the domain creation date. Used with the |
To set the creation date for domain example.com to 2008-12-30: >domain.exe -c example.com -clogin JDoe -creation-date 2008-12-30 |
|
|
|
Enables/Disables the mailing list service. Is |
To enable mailing list service on the domain example.com: >domain.exe -u example.com -maillist_service true |
|
|
|
Limits the number of available connections. Unlimited is set to |
To limit the maximum number of connections available for the domain example.com to 10: >domain.exe -u example.com -max-connections 10 |
|
|
|
Limits the network use. Unlimited is set to |
To limit the maximum network use on the domain example.com to 500 KB/S: >domain.exe -u example.com -traffic-bandwidth 500 |
|
|
|
Sets a new IP address for a domain. Used with Required with |
To set the IP address 192.0.2.87 for the domain example.com when changing the owner of the domain to Plesk client with the login name JaneDoe: >domain.exe --change-owner example.com -clogin JaneDoe -map_ip 192.0.2.87 |
|
|
|
Specifies the IP address to be associated with new domain. If the domain is configured for physical hosting, the specified IP address will be used for physical hosting. |
To associate IP address 192.0.2.33 with example.com configured for physical hosting: >domain.exe --create example.com -hosting true -ip 192.0.2.33 |
|
|
|
Sets the login name for the FTP user having access to the domain files structure. Required if physical hosting is specified. |
To create the FTP user's login for the example.com user, provided that the domain is configured to use physical hosting: >domain.exe --update example.com -login New_FTP_user |
|
|
|
Sets the FTP password. No password is set by default. |
To setup password newpass for accessing example.com files structure via FTP: >domain.exe --update example.com -passwd newpass |
|
|
|
Enables/Disables access to the system via remote desktop panel (RDP). Is |
To enable access to the system via RDP: >domain.exe --update example.com -shell "Login Enabled" |
|
|
< |
Sets the maximum amount of disk space available for the domain files. Unlimited if set to |
To set the 100 MB disk quota for example.com: >domain.exe --update example.com -hard_quota 100M |
|
|
|
Enables/Disables the creation and publishing of an empty site by Sitebuilder when creating a new domain for the client with SB support. Is |
Not to create and publish an empty site when updating example.com: >domain.exe -u example.com -publish-sb-site false |
|
|
|
Enables/Disables FrontPage support. Is |
To enable FrontPage support on example.com: >domain.exe --update example.com -fp true |
|
|
|
Enables/Disables FrontPage Over SSL support. Is |
To enable FrontPage Over SSL support on example.com: >domain.exe --update example.com -fp_ssl true |
|
|
|
Enables/Disables FrontPage authorization. Is |
To enable FrontPage authorization on example.com: >domain.exe --update 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 Plesk 8.1.1. |
To make FrontPage use IIS Index Service on example.com: >domain.exe -u example.com -fp_no_index false |
|
|
|
Enables/Disables SSI support. Is |
To enable SSI support on example.com: >domain.exe --update example.com -ssi true |
|
|
|
Enables/Disables SSI support for HTML and HTM files. Is |
To enable SSI support for HTML and HTM files on example.com: >domain.exe -u example.com -ssi_html true |
|
|
|
Enables/Disables PHP support. Is |
To enable PHP support on example.com: >domain.exe --update example.com -php true |
|
|
|
Specifies PHP version. Is |
To set PHP v.5 default on domain example.com: >domain.exe -u example.com -php_version 5 |
|
|
|
Enables/Disables running PHP as an ISAPI extension. Is Deprecated since Plesk 8.3. Use |
To enable running PHP as an ISAPI extension on domain example.com: >domain.exe -u example.com -php-isapi true |
|
|
|
Specifies PHP support mode. Is |
To enable running PHP as ISAPI extension on example.com: >domain.exe -u example.com -php_handler_type isapi |
|
|
|
Enables/Disables CGI support. Is |
To enable CGI support on example.com: >domain.exe --update example.com -cgi true |
|
|
|
Enables/Disables Perl support. Is |
To enable Perl support on example.com: >domain.exe --update example.com -perl true |
|
|
|
Enables/Disables ASP support. Is |
To enable ASP support on example.com: >domain.exe --update example.com -asp true |
|
|
|
Enables/Disables Python support. Is |
To enable Python support on example.com: >domain.exe --update example.com -python true |
|
|
|
Enables/Disables ColdFusion support. Is |
To enable ColdFusion support on example.com: >domain.exe --update example.com -coldfusion true |
|
|
|
Enables/Disables Miva support. Is |
To enable Miva support on example.com: >domain.exe --update example.com -miva true |
|
|
|
Enables/Disables accessing a domain via SSL. Is |
To enable SSL support on example.com: >domain.exe --update example.com -ssl true |
|
|
|
Sets up which web statistics tool should be used on a domain. Is |
To set Webalizer used on example.com: >domain.exe --update example.com -webstat webalizer |
|
|
|
Allows/Prohibits using custom HTTP error messages on a domain. Is |
To allow custom error documents on example.com: >domain.exe --update example.com -err_docs true |
|
|
|
Allows/Prohibits granting to the Plesk IIS User the Full access permission for the domain Is Available since Plesk 8.1.1. |
To allow Plesk IIS User to write and modify files and subfolders in >domain.exe --update example.com -write_modify true |
|
|
|
Allows/Prohibits using dedicated IIS application pool for a domain. Is |
To allow using dedicated IIS application pool on example.com: >domain.exe --update example.com -iis_app_pool true |
|
|
|
Defines the maximum CPU usage by domain (in %). |
To limit the maximum CPU usage by example.com to 3%: >domain.exe -u example.com -cpu_usage 3 |
|
|
|
Enables/Disables log rotation. Is |
To disable log rotation on example.com: >domain.exe --update example.com -log_rotate false |
|
|
< |
Enables/Disables the processing of log files by size (the processing starts once the specified size is achieved). |
To enable the processing of example.com log files when their size comes up to 200 KB: >domain.exe --update sampledomain.com -log_bysize 200K |
|
|
|
Enables the processing of log files by time. Is |
To set up weekly log rotation on example.com: >domain.exe --update example.com -log_bytime weekly |
|
|
|
Specifies the maximum number of stored log files. Is |
To set the maximum number of log files on example.com to 5: >domain.exe --update exampe.com -log_max_num 5 |
|
|
|
Enables/Disables log file compression. Is |
To disable log file compression on example.com: >domain.exe --update example.com -log_compress false |
|
|
|
Enables sending log files to the specified email address. |
To enable sending the log file of example.com to JohnDoe@example.com: >domain.exe --update example.com -log_email JohnDoe@example.com |
|
|
|
Specifies the login name of an existing client who possesses a domain. Required with Deprecated since Plesk 9.0. |
To change an owner of example.com to Jane: >domain.exe --update example.com -clogin Jane |
|
|
|
Enables/Disables running mail service. Is |
To disable mail service on example.com: >domain.exe --update example.com -mail_service false |
|
|
|
Enables/Disables sending the 'domain created' notification to Plesk administrator. Is |
To disable sending the notification: >domain.exe --create example.com -notify false |
|
|
|
Enables/Disables supporting Microsoft ASP.NET framework. Is |
To enable Microsoft ASP.NET framework support on example.com: >domain.exe -u example.com -asp.net true |
|
|
|
Sets the default version of Microsoft ASP.NET framework. Is Available since Plesk 7.5.6. |
To make .NET v.2.0.x default on example.com: >domain.exe -u example.com -asp.net_version 2.0 |
|
|
|
When creating a new domain for the client with Sitebuilder 3.x support, this option enables/disables creating and publishing two subdomains (blog and photo gallery) by SB. Is Used with Available since Plesk 7.6. Deprecated since Plesk 8.4. |
To enable creating and publishing blog, and photo gallery subdomains when creating example.com for a client with SB 3.x support: >domain.exe --create example.com -sb_subdomains_create true |
|
|
|
Specifies Microsoft FrontPage SMTP server. By default, the mail server address defined by MX record in the domain's DNS zone is set. If the MX record is not specified, the parameter is set to |
To set mail.example.com as the FrontPage SMTP server for domain sample.com: >domain.exe -u sample.com -fp_smtp_host mail.example.com |
|
|
|
Specifies Microsoft FrontPage From address. By default, the address is set to domain administrator email address. If the domain administrator account is not configured or their email address is not specified, the domain owner's email address is used. If the client's e-mail address is not specified, then the Plesk administrator's address is used. |
To set the Microsoft FrontPage From address to admin@example.com: >domain.exe -u sample.com -fp_mail_from admin@example.com |
|
|
|
Specifies Microsoft FrontPage Reply to address. By default, the address is set to domain administrator email address. If the domain administrator account is not configured or their email address is not specified, the domain owner's e-mail address is used. If the client's email address is not specified, then the Plesk administrator's address is used. |
To set the Microsoft FrontPage mail settings: Reply to address to admin@example.com: >domain.exe -u sample.com -fp_mail_reply_to admin@example.com |
|
|
|
Specifies the login name of an existing Plesk user who will own the domain. Available since Plesk 9.0. |
To create the domain example.com and assign ownership of the domain example.com to a Plesk client with the login name JDoe : >domain.exe -c example.com -owner JDoe |
|