This document contains a complete description of command line utilities, commands, and
options for Plesk for Linux/Unix.
Who Should Read This Document
This document is intended for Plesk administrators who want to manage the Plesk server
and its configuration locally using command line utilities. The document can also be used by
third-party developers to integrate Plesk with other products installed on the same server.
6 Preface
Typographical Conventions
Formatting convention
Type of Information
Example
Special Bold
Items you must select, such as
menu options, command
buttons, or items in a list.
Go to the QoS tab.
Titles of chapters, sections,
and subsections.
Read the Basic Administration chapter.
Italics
Used to emphasize the
importance of a point, to
introduce a term or to
designate a command line
placeholder, which is to be
replaced with a real name or
value.
The system supports the so called
wildcard character search.
Monospace
The names of style sheet
selectors, files and directories,
and CSS fragments.
The license file is located in the
httpdocs/common/license
directory.
Preformatted
On-screen computer output in
your command-line sessions;
source code in XML, C++, or
other programming languages.
# ls –al /files
total 14470
Preformatted Bold
What you type, contrasted with
on-screen computer output.
# cd /root/rpms/php
The following kinds of formatting in the text identify special information.
Feedback
If you have found a mistake in this guide, or if you have suggestions or ideas on how to
improve this guide, please send your feedback using the online form at
http://www.parallels.com/en/support/usersdoc/. Please include in your report the guide's title,
chapter and section titles, and the fragment of text in which you have found an error.
This chapter describes the version-specific changes in the CL utilities. The changes are
C H A P T E R 1
History of Changes in CL Utilities
grouped by new features in CLI. To describe a particular change in CLI, we use the
following notation:
(+) - the defined utility or command or option is added
(-) - the defined utility or command or option is deprecated
(*) - the defined utility or command or option is modified
Plesk 8.6
Added managing permission on selecting database server on which a database is to
Plesk Command Line Interface (CLI) is designed for integration of Plesk Server
Utility
Affected Object(s)
admin (on page 14)
Plesk administrator control panel interface preferences
and personal information.
ai_prefs(on page 138)
Operating System update sources.
anonftp (on page 17)
Anonymous FTP access on domains with physical
hosting on a Plesk server.
autoresponder (on page 123)
Mail autoresponders.
certificate (on page 171)
SSL certificates.
cfsetting (on page 41)
ColdFusion service on the Plesk server.
client (on page 20)
Client accounts.
client_pref (on page 25)
Client limits and permissions, IP pool, and Plesk
interface preferences (for example, the default
language and skin) for Plesk clients.
client_template (on page 33)
Client templates.
custombutton (on page 42)
Custom buttons.
database (on page 52)
Databases and database users.
database-server (on page 49)
Database servers.
C H A P T E R 2
Overview
Administrator with third-party applications. It can also be used for managing Plesk
installations by administrators experienced in using Plesk. This feature provides the
command line interface to the majority of management tasks that can be performed by
Plesk administrator. The CLI provides the alternative means of control for various
business objects in Plesk. Plesk command line utilities use the Plesk core functionality
to create, manage, and delete clients, domains, services and other Plesk objects.
Plesk CL utilities may be used by the root user from the console or script. The utilities
require "root" or "psaadm" privileges to operate.
Plesk CLI supports localized names of business objects in the same manner as Plesk
does. Therefore, you can create clients with contact names using a locale of your
choice. Use the LANG environment variable to set up a particular locale.
Plesk CLI does not require the Web interface of Plesk Server Administrator to run.
Plesk CLI is commonly included in the Plesk distribution kit and is also available as the
separate plesk-api-cli package.
The table below presents the command utilities provided by the current version of
Plesk (in alphabetical order).
10 Overview
Utility
Affected Object(s)
desktop (on page 57)
Desktop presets.
dns (on page 66)
DNS zones on domains and domain aliases.
domadmin (on page 84)
Domain administrator accounts.
domain (on page 73)
Domain accounts.
domain_pref (on page 94)
Domain limits and preferences for applications,
scripting support, e-mail, and other services.
domain_template (on page 98)
Domain templates.
domalias (on page 91)
Domain aliases.
init_conf (on page 143)
Initial configuration of the Plesk server; Plesk
administrator personal info.
interface_template (on page
111)
Control panel interface templates.
ipmanage (on page 114)
IP addresses on Plesk server.
mail (on page 117)
Domain-level mail service, and mail names (e-mail
accounts).
maillist (on page 134)
Mailing lists.
mailserver (on page 129)
Server-wide mail server settings.
protdir (on page 161)
Password protection of Web directories on domains.
server_dns (on page 60)
Server-wide DNS zone template.
server_pref (on page 107)
Plesk default interface preferences, and Plesk server
system preferences.
service (on page 140)
Services on the Plesk server.
siteapp (on page 152)
Site application packages.
siteapp-item (on page 155)
Site application items.
siteapp-license (on page
159)
Site application licenses.
skeleton (on page 165)
Site skeletons (directory structure).
spamassassin (on page 167)
Spamassassin spam filter.
sso (on page 148)
Single sign-on configuration.
subdomain (on page 175)
Subdomains.
tomcat (on page 180)
Tomcat service and the Java-based Web applications
on domains.
webstat (on page 183)
Webalizer preferences.
webuser (on page 185)
Web users on domains.
The Plesk for Linux/Unix command line utilities must be run from the directory in which
they are stored. For general instructions on executing command line utilities on Plesk
server, consult the Getting Started with Command-Line Utilities (on page 11) section.
Command line utilities for Plesk for Linux/Unix are located in the
C H A P T E R 3
Getting Started with Command Line
Utilities
/usr/local/psa/bin directory on the Plesk server.
To run command line utilities:
1 Log in to the Plesk server via SSH.
2 Use one of the following options to run a utility:
To run a utility from any directory, use the following command line format:
To run a utility when the /usr/local/psa/bin/ is your current directory, use
the following format:
# ./<utility name> [parameters] [options]
Upon successful execution, utilities return the 0 code. If an error occurs, utilities return
code 1 and display the description of the encountered problem on stderr.
For exact command syntax for each utility, consult the corresponding sections in the
Chapter "Using Command Line Utilities (on page 12)".
Warning: Passing passwords through CLI as parameters of the -passwd option
may potentially compromise the system's security as command line can be observed
by other users of the system. It is more secure to pass passwords through the
environment variables. You can transfer non-encrypted passwords by using
environment variable PSA_PASSWORD while using single quotes to specify the empty
values in the command line for the arguments of the -passwd - -passwd_type
options. Similarly, you can transfer encrypted passwords through the environment
variable PSA_CRYPTED_PASSWORD while using single quotes to specify the empty
values in the command line for the arguments of the -passwd and -passwd_type
options.
Plesk for Linux/Unix command line utilities enable Plesk administrators to manage the
C H A P T E R 4
Using Command Line Utilities
Plesk server and its configuration, client accounts, domains, and various services. The
utilities can be used for integration of third-party products with Plesk and for routine
management of Plesk servers by system administrators.
This chapter describes in detail the commands and options currently available for the
command-line utilities. Each command and option is accompanied by a description and
a usage example.
Using Command Line Utilities 13
In this chapter:
Administrator's Server Preferences: admin Utility .............................................. 14
Tomcat Service and Java Applications on Domains: tomcat Utility .................... 180
Web Statistics: webstat Utility ............................................................................ 183
Web Users: webuser Utility ............................................................................... 185
14 Using Command Line Utilities
Administrator's Server Preferences:
Command
Parameter
Description
Example
-update
or -u
Updates Plesk
administrator's
server
preferences.
To set the WinXP Olivegreen skin as the default
interface skin:
# ./admin --update -skin "WinXP
Olivegreen"
or
# ./admin -u -skin "WinXP Olivegreen"
--info or
-i
Displays Plesk
administrator’s
personal
information and
preferences.
To view Plesk administrator’s personal information
and preferences:
# ./admin --info
or
# ./admin -i
--xml-
info or -
xi
Displays Plesk
administrator’s
personal
information and
preferences in the
XML format.
To view Plesk administrator’s personal information
and preferences in the XML format:
# ./admin --xml-info
or
# ./admin -xi
admin Utility
The admin utility is used to manage Plesk administrator control panel interface
preferences and view the administrator's personal information and interface
preferences through CLI.
Sets the default interface
language for Plesk
administrator's control panel
interface.
The argument of the
command must be a valid
four-letter language code
derived from the language
code described in ISO-639-2
and the corresponding country
code described in ISO-3166.
For example, the Plesk code
for the Italian language code
is it-IT; the Plesk code for
the American variant of
English is en-US; the Plesk
code for the British variant of
English is en-GB.
To set the default interface
language to Russian:
# ./admin -u -locale
ru-RU
-skin
<skin_name>
Sets the default interface skin
for Plesk administrator's
control panel interface.
To set the default interface
skin to WinXP Olivegreen:
# ./admin -u -skin
"WinXP Olivegreen"
template
<template_name>
Applies an interface
customization template to
Plesk administrator's control
panel interface.
To apply the customization
template CustomTemplate
to administrator's control
panel interface:
# ./admin -u template
CustomTemplate
multiple
sessions
true|false
Allows/Prohibits having
several simultaneous sessions
under administrator's login.
To allow multiple sessions
to run simultaneously under
administrator's login:
# ./admin -u multiple-sessions
true
Options
16 Using Command Line Utilities
Option
Parameter
Description
Example
-maxbuttonlength
<number>
Limits button label length for
the Plesk administrator's
control panel interface.
To restrict the maximum
button label length for the
Plesk administrator's
control panel interface to
10:
# ./admin -u -maxbutton-length 10
-lockscreen
true|false
Prevents/Allows working with
Plesk until page is completely
loaded.
To allow Plesk
administrator to work with
the control panel even if
control panel screens are
not completely loaded:
# ./admin -u -lockscreen false
Using Command Line Utilities 17
Anonymous FTP Access: anonftp Utility
Command
Parameter
Description
Example
--update
or -u
<domain_
name>
Updates the
anonymous FTP
settings on a
specified domain.
To enable downloading files from the incoming
directory by users on the domain example.com:
Displays
information about
the anonymous
FTP settings on a
specified domain.
To view information about anonymous FTP
settings on the domain example.com:
# ./anonftp --info example.com
or
# ./anonftp -i example.com
The anonftp utility is used to manage anonymous FTP access on domains with
physical hosting on a Plesk server. By using this utility, you can perform the following
tasks:
enabling/disabling the anonymous FTP access on a domain
restricting download bandwidth and the maximum number of simultaneous FTP
connections
managing the incoming directory properties
configuring welcome message displayed upon anonymous FTP user login
To change client login name to John and
set password to mypass for the client with
current login name JDoe :
# ./client --update JDoe -login
John -passwd mypass
or
# ./client -u JDoe -login John passwd mypass
The client utility is used to manage Plesk client accounts through CLI. By using this
utility, you can perform the following tasks:
creating, renaming, and removing client accounts
enabling and disabling existing client accounts
edit client's login name and password
edit client's personal information
Example
The following command creates the client account with the contact name John Doe,
Plesk control panel login name JDoe, and password sample, specifies the Unites States as the client’s country, and prevents automatic sending of standard Plesk mail
notifications (if they are enabled) about the account creation.
Note: Use of this option is not recommended. Passing passwords through CLI as
parameters of the -passwd option may potentially compromise the system's security
as command line can be observed by other users of the system. It is more secure to
pass passwords through the environment variables. You can transfer non-encrypted
passwords by using environment variable PSA_PASSWORD while using single quotes to
specify the empty values in the command line for the argument of the -passwd - passwd_type options.
Similarly, you can transfer encrypted passwords through the environment variable
PSA_CRYPTED_PASSWORD while using single quotes to specify the empty values in the
command line for the argument of the -passwd and -passwd_type options.
Using Command Line Utilities 25
Client Limits, Permissions, and Interface
Command
Parameter
Description
Example
--update or
-u
<login_nam
e>
Updates
preferences
and limits for
an existing
client account.
To disable changing domain limits for the
client account with the login name JDoe:
Displays the list
of available
control panel
interface skins.
To view the list of available interface skins:
# ./client_pref --skin-list
or
# ./client_pref -sl
--info or -i
<login_nam
e>
Displays
information
about client
account
preferences
and limits.
To view information about preferences and
limits set on the client account with login
name JDoe:
# ./client_pref --info JDoe
or
# ./client_pref -i JDoe
Settings: client_pref Utility
The client_pref utility enables the administrator to set and edit the client's limits
and permissions, to manage the client's IP pool, and to define Plesk interface
preferences (e.g. the default language and skin) for the client through CLI.
Example
The following command updates the client account with the login name JDoe as
follows: the client is allowed to manage log rotation and mailing lists and to create up to
20 subdomains. The use of disk space allotted for the client is restricted to 20 GB, and
the expiration date of the client account is set to 2008-12-31.
Sets the default interface
language for client's
control panel interface.
The argument of the
command must be a
valid four-letter language
code derived from the
language code
described in ISO-639-2
and the corresponding
country code described
in ISO-3166.
For example, the Plesk
code for the Italian
language code is it-IT; the Plesk code for
the American variant of
English is en-US; the
Plesk code for the British
variant of English is en-GB.
To set the default interface
language for the client with the
login name JDoe to Russian:
# ./client_pref -u JDoe locale ru-RU
-language
<languag
e_code>
Sets the default interface
language for client's
control panel interface.
Deprecated since Plesk
8.0. Use the -locale
option instead.
To set the default interface
language for the client with the
login name JDoe to Russian:
# ./client_pref -u JDoe language ru-RU
-skin
<skin_na
me>
Sets the default interface
skin for a client's control
panel interface.
To set the skin WinXP Olivegreen
as the default interface skin for the
client with the login name JDoe:
# ./client_pref -u JDoe skin "WinXP Olivegreen"
-multiplesessions
true|fal
se
Allows/Prohibits having
several simultaneous
sessions under client's
login.
Is true by default.
To prohibit multiple sessions to
run simultaneously under login of
the client with the login name
JDoe:
# ./client_pref -u JDoe multiple-sessions false
-max-buttonlength
<number>
Limits button label length
for the client's control
panel interface.
To restrict the maximum button
label length for the control panel
interface of the client with the login
name JDoe to 10:
# ./client_pref -u JDoe max-button-length 10
32 Using Command Line Utilities
Option
Parameter
Description
Example
-lock-screen
true|fal
se
Prevents/Allows working
with Plesk until page is
completely loaded.
Is true by default.
To prevent client with login name
JDoe from working with the control
panel until control panel screens
are completely loaded:
# ./client_pref -u JDoe lock-screen true
-desktoppreset
<preset_
name>
Sets the default desktop
preset for client's control
panel interface.
To set the preset Custom Desktop
as the default interface skin for the
client with the login name JDoe:
# ./client_pref -u JDoe skin "Custom Desktop"
select_db_ser
ver
true|fal
se
Allows/Prohibits
choosing a DB server
from the servers
registered in Plesk,
when creating a
database.
Is false by default.
Available since Plesk
8.6.
To allow the client with the
login name JDoe to choose DB
server on which a database is
to be created:
# ./client_pref -u JDoe select_db_server true
Using Command Line Utilities 33
Client Templates: client_template Utility
Command
Parameter
Description
Example
--create
or -c
<client_templat
e_name>
Creates a new
client template.
To create the template named Client Template:
# ./client_template --create
"Client Template"
or
# ./client_template -c "Client
Template"
The client_template utility enables the administrator to manage client templates
through CLI. By using this utility, you can perform the following tasks:
creating, renaming, and deleting client templates
editing client account limits and preferences for clients creating with a client
templates
managing various domain hosting parameters - log file management, mail
Example
The following command updates the client template Client Template as follows: the
client is allowed to manage log rotation and mailing lists and to create up to 20
subdomains. The use of disk space allotted for the client is restricted to 20 GB, and the
expiration date of the client account is set to 2008-12-31.
The custombutton utility is used to create custom buttons and manage their
properties (interface location, button names, URLs, context help messages, and other
parameters) through CLI.
Custom buttons of the following types can be created and managed by using this utility:
custom buttons pointing to a URL
custom buttons linked to site applications
Example 1
The following command creates the custom button Statistics that opens URL
http://example.com/site-statistics, places the custom button on domain administration
pages, includes domain ID#, domain name, and client ID# in browser requests
generated by clicking on the button, sets the context help message for the button as
Click to go to site-statistics, and makes the button available in control panels of all
domain users.
# ./custombutton --create -text Statistics -url
http://example.com/site-statistics -place domain -url_comp
dom_id,dom_name,cl_id -conhelp "Click to go site-statistics" -public
true
Example 2
The following command creates custom button named osCom linked to site application
osCommerce installed on domain example.com, and accessible at URL
http://example.com/osCommerce, and sets the context help message for the button as
Click to open osCommerce.
# ./custombutton --create -text osCom -url
http://example.com/osCommerce -siteapp-link -siteapp-domain
example.com -siteapp-name osCommerce -conhelp "Click to open
osCommerce"
Using Command Line Utilities 43
Commands
Command
Parameter
Description
Example
--create
or -c
Creates a new
custom button.
Requires the text and -url
options.
To create the new custom button Statistics
(pointing to URL http://example.com/sitestatistics) and print its Plesk database ID:
The following
locations are
available: Client's
home page
(client), Domain
administrator's
home page
(domain), Plesk
administrator's
home page
(admin),
Navigation pane
(navigation).
Is client by
default.
To set the custom button Statistics
location to administrator desktop:
Specifies a domain
on which a site
application to be
linked to a custom
button is installed.
Required with the
-siteapp-link
option.
To create a custom button osCom linked
to a site application (which ID in the
database of Plesk is 24) installed on the
domain example.com and accessible:
Specifies the Plesk
database ID of a
site application to
be linked to a
custom button.
To create a custom button osCom linked
to a site application (which ID in the
database of Plesk is 24) installed on the
domain example.com and accessible:
Specifies a path to
directory where the
application is
installed relatively
to httpdocs
directory.
To create a custom button linked to the
site application osCommercev.2.2
release 51 which is installed in directory
/httpdocs/osCommerce/v2.2 on the
domain example.com:
Specifies whether
a custom button is
linked to a site
application
installed in the
/httpsdocs
directory, that is,
accessible only
through the HTTPS
protocol.
To create a custom button linked to a site
application (which ID in the database of
Plesk is 24) installed in the httpsdocs
directory on the domain example.com:
Specifies the name
of a subdomain if a
site application is
installed on a
subdomain.
To create a custom button osCom linked
to a site application osCommercev.2.2
release 51 which is installed on the
subdomain sample of the domain
example.com:
To create the database server
entry in Plesk for the MySQL server
available at IP address and port
number 192.0.2.78:3838 and set
the server administrator's login
name dbadmin and password
dbpass:
# ./database-server -create-server
192.0.2.78:3838 -type
mysql -admin dbadmin passwd dbpass
The database-server utility is used to manage database server entries in Plesk
through CLI. By using this utility, you can perform the following tasks:
creating database server entries in Plesk
setting and editing database server connection parameters in the entries
Example
The following command sets the new login name dbadmin and the new password
dbpass for the database server administrator on a remote database server previously
available at 192.0.2.78:3838 (as recorded in the database server entry in Plesk) and
sets the IP address and port number for the entry to 192.0.2.89:3636.
Updates the following
database server connection
settings in the database
server entry in Plesk: type,
host address, port number.
The database server entry
must exist in Plesk before
executing this command.
The changes made by this
command may adversely
affect performance of site
applications and user scripts.
Cannot be used to change
the local MySQL database
server entry settings.
To change the database server
administrator's login name to
newadmin and password to
newpass on the remote MySQL
server available at IP address and
port number 192.0.2.78:3838:
# ./database-server -update-server
192.0.2.78:3838 -admin
newadmin -passwd newpass
--removeserver
<host>:<p
ort>
Deletes a database server
entry from Plesk.
Only remote database
servers that have no hosted
databases on it can be
deleted from Plesk. A default
database server cannot be
deleted.
To remove the database server
entry from Plesk for the database
server available at IP address and
port number 192.0.2.78:3838:
# ./database-server -remove-server
192.0.2.78:3838
--setdefaultserver
<host>:<p
ort>
Assigns a remote database
server entry as the default
server for the database type.
Only remote database
servers can be set as default
servers by using this
command.
To set the database server
available at 192.0.2.78:3838 for
databases of its type:
# ./database-server --setdefault-server
192.0.2.78:3838
--setdefaultserverlocal
Assigns a local database
server as the default server
for the database type.
Requires -type option.
To set the local MySQL server as
the default server for MySQL
databases:
# ./database-server --setdefault-server-local -type
mysql
--help or -
h
Displays help on the use of
the utility.
To view help on the use of the
utility:
# ./database-server --help
or
# ./database-server -h
Using Command Line Utilities 51
Options
Option
Parameter
Description
Example
-set
<host>:<p
ort>
Specifies a database server
host and port number.
Used only with the -update-server.
To change the IP address and port
number to 192.0.2.89:3636 for the
remote database server previously
available at 192.0.2.16:3838 as
recorded in the database server
entry in Plesk:
# ./database-server -update-server
192.0.2.16:3838 -type mysql
-set 192.0.2.89:3636
-type
mysql|pos
tgresql
Specifies the type of a
database server.
Required with --create-
server and --setdefault-server-local.
To create a database server entry in
Plesk for a MySQL server available
at 192.0.2.78:3838 and set the
server administrator's login name
dbadmin and password dbpass:
# ./database-server -create-server
192.0.2.78:3838 -type mysql
-admin dbadmin -passwd
dbpass
-admin
<login_na
me>
Specifies database server
administrator's login name.
-passwd
<password
>
Specifies database server
administrator's password.
For additional comments, see
the Note below the table.
Note: Use of this option is not recommended. Passing passwords through CLI as
parameters of the -passwd option may potentially compromise the system's security
as command line can be observed by other users of the system. It is more secure to
pass passwords through the environment variables. You can transfer non-encrypted
passwords by using environment variable PSA_PASSWORD while using single quotes to
specify the empty values in the command line for the argument of the -passwd - passwd_type options.
52 Using Command Line Utilities
Databases: database Utility
Command
Parameter
Description
Example
--create
or -c
<database
_name>
Creates a database on a
database server.
Requires the -domain
option.
In addition, either the type option is required if
the database is to be
created on a local database
server, or the -server
option is required if the
database is to be created
on a remote database
server.
To create the database jdoe-gallery
for the domain example.com on the
local MySQL server:
The database utility is used to manage databases and database users in Plesk
through CLI. By using this utility, you can perform the following tasks:
creating or deleting databases
adding and removing database users
adding or removing database access records for database users
editing database user credentials
setting charset for PostgreSQL databases
To remove the user with the
login name JDoe from the
database jdoe-gallery:
# ./database -u jdoegallery -remove_user
JDoe
-user_name
<user_logi
n_name>
Sets a login name for a
database user.
To change the jdoe-gallery
user login name from JDoe to
Jane:
# ./database -u jdoegallery -update_user
JDoe -user_name Jane
Using Command Line Utilities 55
Option
Parameter
Description
Example
-add-access
<host>
Adds an access record for a
database user: IP address or
name of a host from which a
database user can remotely
access the database.
Host may be specified by
either its host name or IP
address. A subnet mask can
be specified, too. MySQL
wildcard characters (_ and
%) are allowed; for more
information, consult
To enable remote access to
the database jdoe-gallery
from the host with IP address
192.0.2.78 for the database
user with the login name
Jane:
# ./database -u jdoegallery -update_user
Jane -passwd sample add-access 192.0.2.78
-removeaccess
<host>
Removes an access record
for a database user: IP
address or name of a host
from which a database user
can remotely access the
database.
Host may be specified by
either its host name or IP
address. A subnet mask can
be specified, too. MySQL
wildcard characters (_ and
%) are allowed; for more
information, consult
http://dev.mysql.com/doc/ref
man/5.0/en/connectionaccess.html).
To disable remote access to
database jdoe-gallery from
the host with IP address
Note: Use of this option is not recommended. Passing passwords through CLI as
parameters of the -passwd option may potentially compromise the system's security
as command line can be observed by other users of the system. It is more secure to
pass passwords through the environment variables. You can transfer non-encrypted
passwords by using environment variable PSA_PASSWORD while using single quotes to
specify the empty values in the command line for the argument of the -passwd - passwd_type options.
Similarly, you can transfer encrypted passwords through the environment variable
PSA_CRYPTED_PASSWORD while using single quotes to specify the empty values in the
command line for the argument of the -passwd and -passwd_type options.
Using Command Line Utilities 57
Desktop Presets: desktop Utility
Command
Parameter
Description
Example
--set-admin or
-sa
Changes type of
an existing
desktop preset to
the
Administrator's
desktop preset.
Requires -
desktop-
preset option.
To set existing desktop preset named
AdminDesktop as an administrator's
desktop preset:
The desktop utility enables managing desktop presets through CLI. By using this
utility, you can perform the following tasks:
creating or deleting desktop presets
changing desktop preset type
setting default desktop presets
displaying a list of a available desktop presets
The server_dns utility is used to manage the Plesk server's DNS zone template
through CLI. By using this utility, you can perform the following tasks:
adding resource records to or deleting them from the Plesk server's DNS zone
template
specifying the status to be set for a domain's DNS zone upon creation of a domain
updating the Start-of-Authority (SOA) record for the DNS zone template
setting the Plesk name server DNS zone preferences regarding recursive DNS
Adds a resource
record to the Plesk
server's domain DNS
zone template.
If a record already
exists, the command
returns code 2.
To add new MX resource record
mail.<domain> to the domain DNS
zone template and specify mail
exchanger mail.<domain> and set
the mail exchanger priority to 35 for
the record:
Adds host or network IP
addresses to the Access
Control list (ACL).
To add records 192.0.2.78
and 192.0.2.0/24 to the ACL:
# ./server_dns -u add-acl
192.0.2.78,192.0.2.0/2
4
-a
<subdomain_n
ame>
Specifies the A type resource
record for a subdomain in the
Plesk server's domain DNS
zone template.
Used with the --add.
Requires the -ip option.
To add new A resource record
sample.<domain> (specifying
a placeholder for a domain IP
address for the record) to the
domain DNS zone template:
# ./server_dns -a -a
sample -ip "<ip>"
-ip
<IP_address>
|"<ip>"
Specifies an IP address or a
placeholder for a domain's IP
address for creating an A type
resource record in the Plesk
server's domain DNS zone
template.
Used only with the --add
command.
-ns
<subdomain_n
ame>|""
Specifies the NS type resource
record in the Plesk server's
domain DNS zone template.
Used only with the --add
command.
Requires the -nameserver
option.
To add a new NS resource
record <domain> specifying
domain name <domain> as
the name server to the DNS
zone template:
# ./server_dns -a -ns
"" -nameserver
"ns.<domain>"
nameserve
r
<domain_name
>|"[<subdoma
in_name>.]<d
omain>"
Specifies the name of a
nameserver or a placeholder
for creating an NS type
resource record in the Plesk
server's domain DNS zone
template.
-mx
<subdomain_n
ame>|""
Specifies the MX type resource
record in the Plesk server's
domain DNS zone template.
Used with the --add
command only.
Requires the mailexchanger option.
To add new MX resource
record <domain> specifying
domain name mail.<domain>
as the mail exchanger for the
record, and setting the mail
exchanger's priority to 15 to
the domain DNS zone
template:
64 Using Command Line Utilities
Option
Parameter
Description
Example
mailexcha
nger
<domain_name
>|"[<subdoma
in_name>.]<d
omain>"
Specifies the name of a
mailexchanger or a
placeholder for creating an MX
type DNS record in the Plesk
server's domain DNS zone
template.
# ./server_dns -a -mx
"" -mailexchanger
"mail.<domain>" priority 15
-priority
<number>
Specifies the mail exchanger
priority for creating an MX type
DNS record in the Plesk
server's domain DNS zone
template.
-cname
<subdomain_n
ame>|""
Specifies the CNAME type
resource record in the Plesk
server's domain DNS zone
template.
Used with the --add
command only.
Requires concomitant use of
the -canonical option.
To add new CNAME type
resource record
subdom.<domain> for a
canonical name <domain> to
the domain DNS zone
template:
# ./server_dns -a cname subdom canonical "<domain>"
canonical
<domain_name
>|[<subdomai
n_name>.]<do
main>"
Specifies a canonical name or
a placeholder for creating a
CNAME type DNS record in the
Plesk server's domain DNS
zone template.
-ptr
<subdomain_n
ame>|""
Specifies the PTR type
resource record in the Plesk
server's domain DNS zone
template.
Used with the --add and -del commands only.
Requires concomitant use of
the -subnet option.
To add new PTR type DNS
record "<ip>"/16 for <domain>
to the domain DNS zone
template:
Specifies an IP address and a
subnet mask or a placeholder
for creating a PTR type DNS
record in the Plesk server's
domain DNS zone template.
-txt
<text>|""
Specifies the TXT type
resource record in the Plesk
server's domain DNS zone
template.
Used with the --add only.
Requires the -domain option
if the record is created for a
specific subdomain name.
To specify the TXT type DNS
record "This record is used to
implement the Senders Policy
Framework and DomainKeys
specifications" for the specific
subdomain name subdom in
the domain DNS zone
template:
# ./server_dns -a -txt
Using Command Line Utilities 65
Option
Parameter
Description
Example
-domain
<subdomain_n
ame>|""
Specifies a subdomain name
for creating a TXT type
resource record in the Plesk
server's domain DNS zone
template.
Used with the --add
command only.
"This record is used
to implement the
Senders Policy
Framework and
DomainKeys
specifications" domain subdom
-soa-ttl
<number>[S|M
|H|D|W]
Specifies the TTL value for the
SOA record in the Plesk
server's domain DNS zone
template.
Used with the--update-soa
command only.
To set the TTL value to 5
hours, the Refresh value to 4
hours, the Retry value to 10
seconds, the Expire value to 2
weeks, and the Minimum
value to 2 days for the SOA
record in the domain DNS
zone template:
Specifies the Refresh value for
the SOA record in the Plesk
server's domain DNS zone
template.
Used with the --update-soa
command only.
-soaretry
<number>[S|M
|H|D|W]
Specifies the Retry value for
the SOA record in the Plesk
server's domain DNS zone
template.
Used with the --update-soa
command only.
-soaexpire
<number>[S|M
|H|D|W]
Specifies the Expire value for
the SOA record in the Plesk
server's domain DNS zone
template.
Used with the --update-soa
command only.
-soaminimum
<number>[S|M
|H|D|W]
Specifies the Minimum value
for the SOA record in the
Plesk server's domain DNS
zone template.
Used with the --update-soa
command only.
66 Using Command Line Utilities
DNS Zones on Domains: dns Utility
The dns utility is used to manage DNS zones on domains and domain aliases through
CLI. By using this utility, you can perform the following tasks:
adding resource records to or deleting them from a domain's or domain alias' DNS
zone
enabling or disabling a local DNS service on a domain or domain alias
setting Plesk name server as the master or slave server for a DNS zone
assigning external master DNS servers for a DNS zone
enabling or disabling the www-prefixed alias (in the Error! Hyperlink
reference not valid. name> form) support for canonical domain names
updating the Start-of-Authority (SOA) record for a DNS zone
Deletes all resource
records from a
domain's DNS
zone.
To delete all existing resource records from
the DNS zone for the domain example.com:
# ./dns --del-all example.com
or
# ./dns -da example.com
68 Using Command Line Utilities
Command
Parameter
Description
Example
--reset
or -res
<domain_
name>|<d
omain_al
ias>
Restores the
default resource
records for a
domain's zone
based on the Plesk
server DNS zone
template.
Requires the -ip
option.
To restore the default resource records for a
domain's zone based on the Plesk server DNS
zone template:
# ./dns --reset example.com -ip
192.0.2.9
or
# ./dns -res example.com -ip
192.0.2.9
--on
<domain_
name>|<d
omain_al
ias>
Enables DNS
service on a
domain or domain
alias.
To enable DNS service on the domain
example.com:
# ./dns --on example.com
--off
<domain_
name>|<d
omain_al
ias>
Disables DNS
service on a
domain or domain
alias.
To disable DNS service on the domain
example.com:
# ./dns --off example.com
--setmaster
<domain_
name>|<d
omain_al
ias>
Sets the Plesk
name server as the
master server for
domain's or domain
alias' DNS zone.
To set the Plesk name server as the master
server for DNS zone on the domain
example.com:
# ./dns --set-master example.com
--setslave
<domain_
name>|<d
omain_al
ias>
Sets the Plesk
name server as the
slave server for
domain's or domain
alias' DNS zone.
To set the Plesk name server as the slave
server for DNS zone on the domain
example.com:
# ./dns --set-slave example.com
-updatesoa
<domain_
name>|<d
omain_al
ias>
Updates the SOA
record settings for
domain's or domain
alias' DNS zone.
To set the TTL value for the SOA record of the
DNS zone on the domain example.com to 5
hours:
# ./dns --update-soa example.com soa-ttl 5H
--info
<domain_
name>|<d
omain_al
ias>
Displays the list of
resource records
for a domain's or
domain alias' DNS
zone.
To view the list of resource records in the DNS
zone for the domain example.com:
# ./dns --info example.com
--help or
-h
Displays help on
the use of the
utility.
To view help on the use of the dns utility:
# ./dns --help
or
# ./dns –h
Using Command Line Utilities 69
Options
Option
Parameter
Description
Example
-a
<subdomain_na
me>
Specifies the A type resource
record for a subdomain in a
domain's DNS zone.
Used with the --add and -del commands only.
Requires the -ip option.
To add new A resource record
sample.example.com
specifying IP address
192.0.2.78 for the subdomain
to the DNS zone on the domain
example.com:
# ./dns -a example.com
-a sample -ip
192.0.2.78
-ip
<IP_address>
Specifies an IP address for
creating an A type resource
record in a domain's DNS
zone.
Used with the --add and --
del commands only.
-ns
<subdomain_na
me>
Specifies the NS type
resource record in a
domain's DNS zone.
Used with the --add and -del commands only.
Requires the -nameserver
option.
To add a new NS resource
record ns2.example.com
specifying domain name
example.net as the name
server to the DNS zone on
domain name example.com:
# ./dns -a example.com
-ns ns2 -nameserver
example.net
nameserv
er
<domain_name>
Specifies the name of a
nameserver for creating an
NS type resource record in a
domain's DNS zone.
-mx
<subdomain_na
me>
Specifies the MX type
resource record in a
domain's DNS zone.
Used with the --add and -del commands only.
Requires the mailexchanger option.
To add new MX resource record
mail3.example.com specifying
domain name
mail.example.com as the mail
exchanger for the record, and
setting the mail exchanger's
priority to the DNS zone on the
domain example.com to 15:
Specifies a canonical name
for creating a CNAME type
DNS record in a domain's
DNS zone.
-ptr
<subdomain_na
me>
Specifies the PTR type
resource record in a
domain's DNS zone.
Used with the --add and -del commands only.
Requires the -subnet
option.
To add new PTR type DNS
record 192.0.2.1/16 for the
subdomain sample to the DNS
zone for the domain
example.com:
# ./dns -a example.com
-ptr sample -subnet
192.0.2.1/16
-subnet
<IP_address>|
<subnet_mask>
Specifies an IP address and
a subnet mask for creating a
PTR type DNS record in a
domain's DNS zone.
-txt
<text>
Specifies the TXT type
resource record in a
domain's DNS zone.
Used with the --add and -del commands only.
Requires the -domain
option if the record is created
for a subdomain of a domain.
To specify the TXT type DNS
record "This record is used to
implement the Senders Policy
Framework and DomainKeys
specifications" for the
subdomain name sample in the
DNS zone for the domain
example.com:
# ./dns -a example.com
-txt "This record is
used to implement the
Senders Policy
Framework and
DomainKeys
specifications" -domain
sample
-domain
<subdomain_na
me>
Specifies a subdomain name
for creating a TXT type
resource record in a
domain's DNS zone.
Used with the --add and -del commands only.
Using Command Line Utilities 71
Option
Parameter
Description
Example
-www
true|false
Enables/Disables support of
the www-prefixed alias for a
canonical domain name in a
domain's DNS zone.
Used with the --reset
command only.
Creates/Deletes a CNAME
type resource record in the
Error! Hyperlink
reference not valid.>
form.
To enable support of the wwwprefixed alias
www.example.com (pointing to
domain example.com) in the
DNS zone on the domain
example.com:
# ./dns -res
example.com -www true
-primary
<IP_address>
Adds an IP address of a
primary DNS server for a
domain's DNS zone.
Used with the --add--del
and --reset commands
only.
To add the IP address
192.0.2.78 of the primary DNS
server for DNS zone on the
domain example.com:
# ./dns -a example.com
-primary 192.0.2.78
-soa-ttl
<number>[S|M|
H|D|W]
Sets the TTL value for the
SOA record of a domain' or
domain alias' DNS zone.
Used with the--update-soa command only.
To set the TTL value to 5
hours, the Refresh value to 4
hours, the Retry value to 10
seconds, the Expire value to 2
weeks, and the Minimum value
to 2 days for the SOA record in
the DNS zone on the domain
example.com:
Consult
descriptions of
the options in this
table for adding
resource records
of respective
types individually.
Specifies resource records to
be included in a domain's
DNS zone.
Used with the --update-soa command only.
To add the following two
resource records to the DNS
zone of the domain
example.com, while removing
all pre-existing resource
records from the DNS zone:
new MX resource record
mail3.example.com
specifying domain name
mail.example.com as the
mail exchanger for the
record, and setting the mail
exchanger's priority to 15:
new NS resource record
ns2.example.com setting
domain ns.example.com as
the name server:
To create the domain example.com
for the client with the login name
JDoe:
# ./domain --create
example.com -clogin JDoe
or
# ./domain -c example.com clogin JDoe
--update or -
-u
<domain_nam
e>
Updates configuration
of an existing domain.
To enable the domain example.com:
# ./domain -u example.com status enabled
The domain utility is used to manage domains through CLI. By using this utility, you
can perform the following tasks:
creating, renaming, and removing domains
enabling/disabling the existing domains
managing domain user accounts
managing domain hosting parameters such as support of various scripting
Example
The following command creates and enables domain example.com, assigns the
ownership of the domain to an existing Plesk client with the login name JDoe, assigns
IP address 192.0.2.78 to the domain, enables physical hosting and DNS zone on the
domain, sets login name John and password ftppass for the FTP user, and enables
CGI and PHP support on the domain.
Enables/Disables a
domain (the enabled or
disabled parameters,
respectively). Disables
domain and sets the
domain status to Domain
is disabled by
administrator (admin),
Domain is disabled by
client (client), Domain
is expired (expired).
Sets the domain status
to the status of the client
account that owns the
domain (parent). The
use of the domadm
parameter is restricted;
the parameter should
not be used for changing
the domain status.
To enable the domain
example.com:
# ./domain -u example.com
-status enabled
To assign the status of domain
example.com to the status of the
client account that owns it:
# ./domain -u example.com
-status parent
-new_name
<domain_name
>
Renames a domain.
Used with the --
update only.
To rename the domain
example.com to sample.net:
# ./domain -u example.com
-new_name sample.net
-dns
true|false
Enables/Disables DNS
zone for a domain.
To enable DNS zone for the
domain example.com:
# ./domain -u example.com
-dns true
To disable a DNS zone for the
domain example.com:
# ./domain -u example.com
-dns false
-www
true|false
Enables/Disables the
www prefix for a domain.
Is true by default.
To disable the www prefix for the
domain example.com:
# ./domain -u example.com
-www false
-hosting
true|false
Enables/Disables
hosting for a domain.
Is false by default.
Requires -ip option.
To enable hosting for the domain
example.com with the IP address
192.0.2.87:
# ./domain -u example.com
-hosting true -ip
192.0.2.87
76 Using Command Line Utilities
Option
Parameter
Description
Example
-hst_type
phys|std|frm
Sets the type of hosting
on a domain.
The following types are
available: physical
hosting (phys), standard
forwarding (std), and
frame forwarding (frm).
Is phys by default.
Requires -ip option,
when the phys
parameter is specified.
Requires the target_url option,
when the std or frm
parameters are
specified.
To set up the standard forwarding
hosting (with forwarding to
sample.org) for the existing
domain example.com:
# ./domain -u example.com
-hst_type std -target_url
sample.org
target_url
<URL>
Sets a target URL for the
Standard forwarding and
Frame forwarding types
of hosting.
Required with -
hst_type option when
the std or frm
parameters are
specified.
To set up a target URL for the
domain example.com with the
standard forwarding hosting
(forwarding to sample.org):
# ./domain -u example.com
-target_url sample.org hst_type std
-ip
<ip_address>
Specifies the IP address
of a domain that is
created or updated.
For domains with
physical hosting, the
option also specifies the
IP address at which
domain content is
hosted.
Requires with hosting option and
with -hst_type option
when phys parameter is
specified.
To specify an IP address for
domain example.com when
creating it to 192.0.2.87:
# ./domain -c example.com
-clogin JDoe -ip
192.0.2.87
To indicate IP address of the
domain example.com, where
physical hosting configured:
Allows/Prohibits
publishing site with
Sitebuilder.
Is false by default.
Available since Plesk
8.3.
To allow publishing site with
Sitebuilder on the domain
example.com:
# ./domain -u example.com
-publish-sb-site true
-maxconnection
s
<number>
Limits the number of
available connections.
Unlimited is set to -1.
Available since Plesk
8.3.
To limit the maximum number of
connections available for the
domain example.com to 10:
# ./domain -u example.com
-max-connections 10
-trafficbandwidth
<number>
Limits the network use.
Unlimited is set to -1.
Available since Plesk
8.3.
To limit the maximum network
use on the domain example.com
to 500 KB/S:
# ./domain -u example.com
-traffic-bandwidth 500
-aftp
true|false
Enables/Disables the
anonymous ftp service.
Is false by default.
Deprecated since Plesk
8.1. Use the anonftp
utility instead.
To enable the anonymous FTP
service on the domain
example.com:
# ./domain -u example.com
-aftp true
or
./anonftp -u example.com
-status true
-aftp_inc
true|false
Enables/Disables
uploading to the
incoming directory.
Is false by default.
Deprecated since Plesk
8.1. Use the anonftp
utility instead.
To allow uploading files to the
incoming directory:
# ./domain -u example.com
-aftp_inc true
or
./anonftp -u example.com
-incoming true
82 Using Command Line Utilities
Option
Parameter
Description
Example
aftp_inc_d
isk_limit
<number>[K|M
|G]
Limits the amount of disk
space for the incoming
directory.
A number without a
letter is interpreted as
the number of bytes.
Unlimited if set to -1.
Deprecated since Plesk
8.1. Use the anonftp
utility instead.
To restrict the amount of disk
space available for the incoming
directory to 10 MB:
./anonftp -u example.com
-aftp_inc_disk_limit 10M
-dom_user
true|false
Enables/Disables a
domain administrator
account.
Is false by default.
Deprecated since Plesk
version 8.1. Use the
domadmin utility
instead.
To enable the domain
administrator account on the
domain example.com, set the
domain administrator's password
to adminpass, make the
password encrypted, set the
personal name as John Doe, set
the email address to
admin@example.com, set the
default Plesk interface language
for domain administrator to Italian,
and enable multiple simultaneous
domain administrator sessions:
Sets the type of the user
password for domain
administrator.
Is plain by default.
Deprecated since Plesk
8.1. Use the domadmin
utility instead.
-du_passwd
<string>
Sets the user password
for domain administrator.
Deprecated since Plesk
8.1. Use the domadmin
utility instead.
-du_pname
<string>
Sets the domain
administrator personal
name.
Deprecated since Plesk
8.1. Use the domadmin
utility instead.
-du_email
<string>
Sets the Email address
for domain administrator.
Deprecated since Plesk
8.1. Use the domadmin
utility instead.
Using Command Line Utilities 83
Option
Parameter
Description
Example
du_languag
e
<string>
Sets the default interface
language for domain
administrator.
The argument of the
command must be a
valid two letter language
code and two-letter
country code as
described in ISO-3166
(for example, "it-IT"
stands for Italian).
Deprecated since Plesk
8.1. Use the domadmin
utility instead.
-dumultiplesessions
true|false
Enables/Disables
multiple network
simultaneous sessions
for a domain
administrator.
Deprecated since Plesk
8.1. Use the domadmin
utility instead.
-notify
true|false
Allows/Prohibits
standard email
notifications on a domain
creation (Plesk domain
administrators and
clients).
Used with --create
only.
To prevent email notifications
about domain creation:
# ./domain --create
example.com -clogin JDoe
-notify false
84 Using Command Line Utilities
Domain Administrator Accounts:
Command
Parameter
Description
Example
--update
or -u
<domain_
name>
Updates
configuration of
an existing
domain
administrator's
account with data
specified in the
options.
To set a password for the domain administrator's
account on the domain example.com to sample:
# ./domadmin --update example.com passwd sample
or
# ./domadmin -u example.com -passwd
sample
--info or
-i
<domain_
name>
Displays
information about
a domain
administrator's
account.
To view the information about the example.com
administrator's account:
# ./domadmin --info example.com
or
# ./domadmin -i example.com
domadmin Utility
The domadmin utility is used to manage domain administrator accounts through CLI.
The utility allows the following operations:
editing domain administrator's personal information
viewing the information about a domain
changing the domain management preferences (control panel access and interface
Example
The following command sets the personal name for the administrator of the domain
example.com to John Doe, allows the use of the standard view only for the
administrator, sets the administrator's password to mypass, sets the interface language
to Russian, and allows the domain content management by the domain administrator.
To set the example.com administrator's
city to New York:
# ./domadmin -u example.com address "New York"
-state
<string>
Sets a domain
administrator's state or
province.
To set the example.com administrator's
state to NY:
# ./domadmin -u example.com state NY
-zip
<string>
Sets a domain
administrator's
ZIP/postal code.
To set the example.com administrator's
postal code to 64023-1920:
# ./domadmin -u example.com zip 64023-1920
-country
<country_c
ode>
Sets a domain
administrator's country.
The option's argument
must be a valid twoletter code as described
in ISO-3166).
To set the domain administrator's
country to United States:
# ./domadmin -u example.com country US
-language
<language_
code>
Specifies which
language is used in a
client's control panel
interface.
Deprecated. Use locale option instead.
To set Italian language as default for
the example.com administrator's
account:
# ./domadmin -u example.com language it-IT
-locale
<language_
code>
Specifies which
language is used in a
client's control panel
interface.
The option's argument
must be a valid fourletter language code
derived from the
language code
described in ISO-639-2
and the corresponding
country code described
in ISO-3166.
To set Italian language as default for
the example.com administrator's
account:
# ./domadmin -u example.com locale it-IT
Using Command Line Utilities 87
Option
Parameter
Description
Example
multiplesessions
true|false
Allows/Prohibits having
several simultaneous
sessions in the control
panel.
Is false by default.
To allow example.com administrator to
have several simultaneous sessions in
the control panel:
Note: Use of this option is not recommended. Passing passwords through CLI as
parameters of the -passwd option may potentially compromise the system's security
as command line can be observed by other users of the system. It is more secure to
pass passwords through the environment variables. You can transfer non-encrypted
passwords by using environment variable PSA_PASSWORD while using single quotes to
specify the empty values in the command line for the argument of the -passwd - passwd_type options.
Similarly, you can transfer encrypted passwords through the environment variable
PSA_CRYPTED_PASSWORD while using single quotes to specify the empty values in the
command line for the argument of the -passwd and -passwd_type options.
Using Command Line Utilities 91
Domain Aliases: domalias Utility
Command
Parameter
Description
Example
--create
or -c
<alias_n
ame>
Creates a new
domain alias.
Requires domain option.
To create a new domain alias example.net for the
domain example.com:
Updates
configuration of
an existing
domain alias
with the data
specified in the
options.
To enable mail service on the domain alias
example.net:
# ./domalias --update example.net mail true
or
# ./domalias -u example.net -mail
true
--delete
or -d
<alias_n
ame>
Deletes a
domain alias.
To delete the domain alias example.net:
# ./domalias --delete example.net
or
# ./domalias -d example.net
The domalias utility is used to manage domain aliases through CLI. By using this
utility, you can perform the following tasks:
creating or deleting domain aliases
viewing the information about domain aliases
enabling and disabling Web, Tomcat, and mail services on domain aliases
To rename the domain alias from
example.net to example.org:
# ./domalias -r example.net new-name example.org
-mail
true|false
Enables/Disables
mail service on a
domain alias.
Is true by default.
To disable mail service on the domain alias
example.net:
# ./domalias -u example.net mail false
-web
true|false
Enables/Disables
web service on a
domain alias.
Is true by default.
To disable web service on the domain alias
example.net:
# ./domalias -u example.net -web
false
Options
Using Command Line Utilities 93
Option
Parameter
Description
Example
-domain
<FQDN>
Specifies the name
of the domain for
which domain alias
is to be created.
Required with -create.
To create a new domain alias example.net
for the domain example.com
# ./domalias -c example.net domain example.com
-status
enabled|disa
bled
Enables/Disables
domain alias.
Is enabled by
default.
To disable domain alias example.net:
# ./domalias -u example.net status disabled
-tomcat
true|false
Enables/Disables
the Tomcat service
on a domain alias.
Is false by
default.
To enable the Tomcat service on the
domain alias example.net:
# ./domalias -u example.net tomcat true
-dns
true|false
Enables/Disables
DNS zone on a
domain alias.
To enable the DNS zone on the domain
alias example.net:
# ./domalias -u example.net -dns
true
94 Using Command Line Utilities
Domain Limits and Preferences:
Command
Parameter
Description
Example
--update
or -u
<domain_
name>
Updates
preferences of an
existing domain.
To restrict the amount of disk space available for
the domain example.com to 1 GB:
# ./domain_pref --update example.com
-disk_space 1G
or
# ./domain_pref -u example.com disk_space 1G
--info or
-i
<domain_
name>
Displays
information about
domain
preferences.
To view information about preferences set on
the domain example.com:
# ./domain_pref --info example.com
or
# ./domain_pref -i example.com
--set-
default
or -d
<domain_
name>
Sets a domain as
the default domain for the IP
address that is
assigned to the
domain.
To set the domain example.com as the default
domain for the IP address to which it is
assigned:
# ./domain_pref --set-default
example.com
or
# ./domain_pref -d example.com
domain_pref Utility
The domain_pref utility is used to manage domains through CLI. By using this utility,
you can edit individual domain limits and preferences for applications, scripting support,
email, and other services.
Example
The following command sets the following limits and preferences for the domain
example.com: the available disk space to 1GB, the maximum traffic limit to 500 MB, the
available number of web users to 50, the available number of subdomains to 10, and
enables the Webmail service.
To create a domain template named Domain Template:
# ./domain_template --create
"Domain Template"
or
# ./domain_template -c "Domain
Template"
Utility
The domain_template utility is used to create and edit domain templates through
CLI. The utility allows the following operations:
creating, renaming, and deleting domain templates
managing domain limits and preferences
managing various domain hosting parameters: scripting languages support, ftp user
access, log file management, mail preferences, and other parameters.
Example
The following command creates new domain template named Domain Template;
enables physical hosting and allocates 500 MB of disk space for domains to be created
using this template; sets the domain validity period to one year starting from the
domain creation date; sets the monthly domain traffic limit to 500 MB/month; enables
Python, PHP, and Apache PHP support; enables forwarding of email messages
addressed to non-existing users to email address admin@example.com.