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:
Syntax
init_conf <command> [
<option1> [<param>]
[<option2> [<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 Michael Smith and the administrator's password to adminpass; sets the administrator's phone number to 555-5555, fax number to 333-3333, and e-mail address to admin@example.com; sets the administrator's street address to 45 Trail street, city to Anytown, ZIP code to 77568, and country to Australia.
# ./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 -company "Company, Inc" -name "Michael Smith" -passwd adminpass -phone 555-5555 -fax 333-3333 -email admin@example.com -addr "45 Trail street" -city "Anytown" -pcode 77568 -country AU
Commands
Command |
Parameter |
Description |
Example |
|---|---|---|---|
|
|
It is used to initialize a non-configured Plesk server. By using the applicable options, you can set the server's host name, add administrator's personal information. It can be applied to a non-configured Plesk server only. Requires concomitant use of the following options used to specify administrator's personal information: |
To set the Plesk default IP address to 192.168.12.14, make the address shared, set the network mask to 255.255.0.0, network interface name to eth0, create a default client account My Domains, and specify the Plesk administrator's personal information: # ./init_conf --init -default-ip 192.168.12.14 -netmask 255.255.0.0 -iface eth0 -ip-type shared -def_client -name <string> -passwd <string> -phone <number> -fax <number> -email <string> -addr <string> -city <string> -state <string> -pcode <string> For more details on the options, consult the following table. |
|
|
Updates the Plesk administrator's personal information. |
To set or change the Plesk administrator's e-mail to admin@example.com: # ./init_conf --update -email admin@example.com or # ./init_conf. -u -email admin@example.com |
|
|
Displays help on the use of the utility. |
To display help on the use of the # ./init_conf --help or # ./init_conf -h |
Options
Option |
Parameter |
Description |
Example |
|
|
Adds the Plesk administrator's Company name. Required with the |
To set the Plesk administrator's company name to Company, Inc, contact name as Michael Smith, password to adminpass, phone number to 555-5555, fax number to 333-3333, e-mail address to admin@example.com, street address to 45 Trail street, administrator's city to Anytown, state to New York, ZIP code to 77568, and country to Australia: # ./init_conf --init -company "Company, Inc" -name "Michael Smith" -passwd adminpass -phone 555-5555 -fax 333-3333 -email admin@example.com -addr "45 Trail street" -city "Anytown" -state "New York" -pcode 77568 -country AU |
|
|
Specifies the Plesk administrator's Contact name. Required with the |
|
|
|
Specifies the Plesk administrator's password for access to Plesk control panel. Required with the |
|
|
|
Sets the administrator's phone number (Phone). Required with the |
|
|
|
Sets the administrator's fax number (Fax). Required with the |
|
|
|
Sets the administrator's e-mail address (E-mail). Required with the |
|
|
|
Sets the administrator's street address (Address). Required with the |
|
|
|
Sets the administrator's city (City). Required with the |
|
|
|
Sets the administrator's State/Province. Required with the |
|
|
|
Sets the administrator's Postal/ZIP code. Required with the |
|
|
|
Sets the administrator's Country. The argument 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 |
|
|
|
Sets the Plesk server's host name. Used only with the |
To set the server's host name as example.com: # ./init_conf --init -hostname example.com -name <..> -passwd <..> -phone <..> -fax <..> -email <..> -addr <..> -city <..> -state <..> -pcode <..> |
|
|
Sets the IP addresses specified by the <ip_n> parameters as shared IP addresses. The IP addresses must be added to the server IP address pool before they can be assigned the shared status. Used only with the |
To set IP addresses 192.168.123.46 and 192.168.123.47 as shared IP addresses: # ./init_conf --init -shared_ips add:192.168.123.46,192.168.123.47 -name <..> -passwd <..> -phone <..> -fax <..> -email <..> -addr <..> -city <..> -state <..> -pcode <..> |
|
|
Sets the I would like to receive periodic e-mails from SWsoft. announcing new products, discounts and more option. If set to |
To subscribe the Plesk administrator to SWsoft notifications about new products and promotions lists of SWsoft: # ./init_conf -u -send_announce true |
|
|
Creates the default client account My Domains for the Plesk administrator. Used only with the |
To create the default client account for the Plesk administrator: # ./init_conf --init -def_client -name <..> -passwd <..> -phone <..> -fax <..> -email <..> -addr <..> -city <..> -state <..> -pcode <..> |
|
|
Sets the Default IP Address during initial Plesk configuration. This option is to be used only with the |
To set the Plesk default IP address to 192.168.12.14, make the address shared, set the network mask to 255.255.0.0, and network interface name to eth0: # ./init_conf --init -default-ip 192.168.12.14 -netmask 255.255.0.0 -iface eth0 -ip-type shared -name <..> -passwd <..> -phone <..> -fax <..> -email <..> -addr <..> -city <..> -state <..> -pcode <..> |
|
|
Sets a network mask for the default IP address in Plesk during initial Plesk configuration. Used only with the |
|
|
|
Sets a name for the network interface for the default IP address during initial Plesk configuration. Used only with the |
|
|
|
Sets the type of the default IP address during initial Plesk configuration. Used only with the |