Applicable to:
- Plesk for Linux
- Plesk for Windows
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 "admin@example.com" -address "45 Trail street" -city "New York" -state "NY" -zip "10292" -country "US" -send_announce false -trial_license true -license_agreed true
For 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 admin@example.com \
-company "Megacompany Inc." \
-address "45 Trail street" \
-city "New York" \
-zip 10292 \
-country US \
-state NY
:::
-
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
Comments
0 comments
Please sign in to leave a comment.