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 bin init_conf --init -hostname example.com -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
-
Install license:
# 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