How to change or get the server hostname on Plesk server

In Plesk interface

  1. Login to Plesk
  2. Go to Tools & Settings > Server Settings > Full hostname:

Via Command Line Interface:

  1. Connect to the server using SSH as root
  2. To view hostname execute the command:

hostname To change server hostname execute the following command with preferred hostname value instead of

plesk bin server_pref –update -hostname Restart sw-cp-server and sw-engine services:

service sw-cp-server restart
# service sw-engine restart If the hostname was not changed, use the native SystemD utility(CentOS7/Debian8+/Ubuntu16): hostnamectl set-hostname

By anup

Leave a Reply

Your email address will not be published. Required fields are marked *