3.2.7.1 Purpose
The subdomain.sh utility allows managing settings of various subdomains of Plesk domains.
3.2.7.2 Usage
Usage: subdomain.sh command <subdomain_prefix> [options]
Available commands and options:
| Command | Parameter | Action |
|---|---|---|
| --create or -c | <subdomain> | creates a subdomain for the domain specified with the -domain option |
| --update or -u | <subdomain> | updates an existing subdomain for the domain specified with the -domain option |
| --remove or -r | <subdomain> | removes the subdomains specified with the -subdomains option from the domain, specified with the -domain option. |
| --info or -i | retrieves information on subdomains | |
| --help or -h | displays help on the utility usage | |
| Option | Parameter | Note |
| -domain or -d | <domain_name> | is used for specifying the main (parent) domain the subdomain will be created for |
| -new_name | <new_subdomain> | changes a subdomain name to the specified one (the option cannot be used when creating new subdomains) |
| -ftp_user | <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 |
| -login | <login> | FTP user login name (can be specified if a separate FTP account is used) |
| -passwd | <plain|crypt> | FTP password (no password is set by default, and it may be specified when a separate FTP account is used) |
| -passwd_type | <password> | FTP user password type (default:plain) |
| -hard_quota | <MB> | hard disk quota (use 0 for “unlimited”, which is set by default). You can specify this option when using a separate FTP account. |
| -ssi | <true|false> | SSI support on a subdomain (default: false) |
| -php | <true|false> | PHP support on a subdomain (default: false) |
| -cgi | <true|false> | CGI support on a subdomain (default: false) |
| -perl | <true|false> | Perl support on a subdomain (default: false) |
| -asp | <true|false> | ASP support on a subdomain (default: false) |
| -python | <true|false> | Python support on a subdomain (default: false) |
| -coldfusion | <true|false> | ColdFusion support on a subdomain (default: false) |
| -subdomains or -s | <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. |
3.2.7.3 Examples
|
Creating
a subdomain for a domain: |