init_conf: Server Configuration
The init_conf
utility is used to perform the initial configuration
of Plesk through CLI. By using this utility, you can also edit certain
parameters configured during the initial configuration of the Plesk
server. By using this utility, you can perform the following tasks:
- setting host name for the Plesk server
- setting the default IP address for the Plesk server
- configuring Plesk server networking parameters
- adding IP addresses to the list of shared IP addresses
- specifying and editing Plesk administrator’s personal information
- creating the default client account for the Plesk administrator
Usage
init_conf <command> [
<option_1> [<param>]
[<option_2> [<param>]]
... [<option_N> [<param>]]
]
Example
The following command sets the default IP address to 192.0.2.14 and sets its type to shared; sets the network mask to 255.255.255.0 and the network interface name to eth0 for the default IP address; adds shared IP addresses 192.0.2.46 and 192.0.2.47 to Plesk ; sets the Plesk administrator’s name to John Doe and the administrator’s password to adminpass; sets the administrator’s phone number to 555-5555, fax number to 333-3333, and email address to admin@example.com; sets the administrator’s company name to Megacompany Inc., street address to 45 Trail street, city to New York, ZIP code to 10292, and country to United States.
plesk bin init_conf --init -default-ip 192.0.2.14 -netmask 255.255.255.0 -iface eth0 -ip-type shared -hostname example.com -shared_ips add:192.0.2.46,192.0.2.47 -name "John Doe" -passwd mypass -phone 555-5555 -fax 333-3333 -email admin@example.com -company "Megacompany Inc." -address "45 Trail street" -city "New York" -zip 10292 -country US -state NY
Commands
Command | Parameter | Description | Example |
---|---|---|---|
--init |
Initializes a non-configured Plesk server. Requires following options: Note: The |
To set the Plesk default IP address to 192.0.2.14, make the address shared, set the network mask to 255.255.0.0, network interface name to eth0, and specify the Plesk administrator’s personal information: plesk bin init_conf --init -default-ip 192.0.2.14 -netmask 255.255.0.0 -iface eth0 -ip-type shared -name "John Doe" -passwd mypass -phone 555-4444 -fax 555-4433 -email admin@example.com -address "45 Trail street" -city "New York" -country US -state NY -zip 10292 |
|
--update or -u
|
Updates the Plesk Panel administrator’s personal information. |
To set the Plesk administrator’s email address to admin@example.com: plesk bin init_conf --update -email admin@example.com or plesk bin init_conf -u -email admin@example.com |
|
--check-configured or -c
|
Checks whether Plesk is configured. Returns 0 on success, 1 otherwise. |
To check if Plesk is configured: plesk bin init_conf --check-configured or plesk bin init_conf -c |
|
--set-admin-password or -p
|
Changes the Plesk administrator’s password on an already initialized Plesk . Sets administrator’s password on a non-initialized Plesk without initialization. |
To set the Plesk administrator’s password to mypassword: plesk bin init_conf --set-admin-password -passwd mypassword or plesk bin init_conf -p -passwd mypassword |
|
--help or -h
|
Displays help on the use of the utility. |
To view help on the use of the plesk bin init_conf --help or plesk bin init_conf -h |
Options
Option | Parameter | Description | Example |
---|---|---|---|
-company |
<string> |
Specifies the Plesk administrator’s company name. Required with the |
To set the Plesk administrator’s company name to Megacompany: plesk bin init_conf -u -company Megacompany |
-name |
<string> |
Specifies the Plesk administrator’s contact name. Required with the |
To set the Plesk administrator’s contact name to John Doe: plesk bin init_conf -u -name "John Doe" |
-passwd |
<password> |
Specifies the Plesk administrator’s password for access to Plesk Panel. Required with the |
To set the Plesk administrator’s password to sample: plesk bin init_conf -u -passwd sample |
-phone |
<number> |
Specifies the Plesk administrator’s phone number. Required with the |
To set the Plesk administrator’s phone number to 323-4455: plesk bin init_conf -u -phone 323-4455 |
-fax |
<number> |
Specifies the Plesk administrator’s fax number. |
To set the Plesk administrator’s fax number to 323-4433: plesk bin init_conf -u -fax 323-4433 |
-email |
<string> |
Specifies the Plesk administrator’s email address. Required with the |
To set the Plesk administrator’s email address to admin@example.com: plesk bin init_conf -u -email admin@example.com |
-address |
<string> |
Specifies the Plesk administrator’s street address. Required with the |
To set the Plesk administrator’s street address to 45 Trail street: plesk bin init_conf -u -address "45 Trial Street" |
-city |
<string> |
Specifies the Plesk administrator’s city. Required with the |
To set the Plesk administrator’s city to New York: plesk bin init_conf -u -city "New York" |
-state |
<string> |
Specifies the Plesk Panel administrator’s state/province. Required with the |
To set the Plesk Panel administrator’s state to NY: plesk bin init_conf -u -state NY |
-zip |
<string> |
Specifies the Plesk administrator’s postal/zip code. Required with the |
To set the Plesk administrator’s zip code to 10292: plesk bin init_conf -u -zip 10292 |
-country |
<string> |
Specifies the Plesk administrator’s country. The parameter of the command must be a valid two-letter country code as described in ISO-3166 (for example, “AU” stands for Australia). Required with the |
To set the Plesk administrator’s country to United States: plesk bin init_conf -u -country US |
-hostname |
<domain_name> |
Specifies the Plesk server’s host name. Used with the |
To set the server’s host name to host.example.com: plesk bin init_conf --init -hostname host.example.com -name <..> -passwd <..> -phone <..> -email <..> -addr <..> -city <..> -country <..> -state <..> -zip <..> |
-shared_ips |
add:<ip_1>,<ip_2>, ...,<ip_n> |
Sets the IP addresses specified by the parameters as shared. The IP addresses must be added to the server IP address pool before they can be assigned the shared status. Used with the |
To set IP addresses 192.0.2.46 and 192.0.2.47 as shared IP addresses: plesk bin init_conf --init -shared_ips add:192.168.123.46,192.168.123.47 -name <..> -passwd <..> -phone <..> -fax <..> -email <..> -addr <..> -city <..> -country <..> -state <..> -zip <..> |
-send_personalized_announce |
true|false |
Subscribes/unsubscribes to personalized newsletters from Plesk. By default, the subscription is turned off. The newsletters can contain security-related, technical, and general product information. To personalize the newsletters, Plesk may also use additional profile information, for example, usage and behavior data. You can always unsubscribe from the newsletters at any time. |
To subscribe to personalized newsletters for Plesk administrators: plesk bin init_conf -u -send_personalized_announce true |
-def_client |
Creates the default client account MyDomains for the Plesk administrator. Deprecated. |
To create the default client account for the Plesk administrator: plesk bin init_conf --init -def_client -name <..> -passwd <..> -phone <..> -fax <..> -email <..> -addr <..> -city <..> -state <..> -zip <..> |
|
-encrypted-password |
Forces Plesk to store the Plesk administrator’s password in the encrypted form. |
To force Plesk to store the Plesk administrator’s password in the encrypted form: plesk bin init_conf -u -encrypted-password |
|
-plain-password |
Forces Plesk to store the Plesk administrator’s password in plain text. |
To force Plesk to store the Plesk administrator’s password in plain text: plesk bin init_conf -u -plain-password |
|
-license_agreed |
true|false |
Defines whether the Plesk license agreement is accepted. Is |
To initialize Plesk server so that the Plesk administrator after entering his credentials to freshly-installed Plesk automatically agrees with the license agreement: plesk bin init_conf -u -license_agreed true |
-trial_license |
true|false |
Allows/Prohibits installation of a full-featured trial license.
Requires to provide an email to install a trial license (the
-email option). |
To allow installing a full-featured trial license: plesk bin init_conf --init -trial_license true -email admin@example.com |
Note: By using the trial_license
option, you authorize Plesk to
collect, store, process, and use your personal data (name and email),
including cross-border processing, in accordance with the applicable
data protection laws currently in effect, for issuing your trial
license as a part of a licensing contract between you and Plesk.