Question
How to perform initial Plesk configuration via command line?
Answer
Plesk init_conf
utility can be used to do it from CLI:
-
Run the
init_conf
utility with necessary parameters.Plesk Onyx 17.5
# plesk bin init_conf --init
-default-ip 192.0.2.2
-netmask 255.255.255.0
-iface eth0
-ip-type shared
-hostname example.com
-shared_ips add:192.0.2.3,192.0.2.4
-name "John Doe"
-passwd mypass
-phone 555-5555
-fax 333-3333
-email [email protected]
-company "Megacompany Inc."
-address "45 Trail street"
-city "New York"
-zip 10292
-country US
-state NYPlesk Onyx 17.8 and Obsidian
# plesk bin init_conf --init -hostname example.com -company "Megacompany Inc." -name "John Doe" -passwd "mypassword" -phone "55555" -email "[email protected]" -address "45 Trail street" -city "New York" -state "NY" -zip "10292" -country "US" -send_announce false -trial_license true -license_agreed true -shared_ips add:192.0.2.2
- Install license(only for Plesk 17.5 and above):
# plesk bin license --install activation_code_number
- Choose interface view.
Service Provider view:# plesk bin poweruser --off
Power User view:
# plesk bin poweruser --on -ip 192.0.2.2 -domain example.com
Note: For more information on options available in init_conf
, refer to the Plesk Reference for Command-Line Utilities