How to change or get a server hostname on Plesk server

Created:

2016-11-16 13:10:14 UTC

Modified:

2017-08-16 16:56:53 UTC

15

Was this article helpful?


Have more questions?

Submit a request

How to change or get a server hostname on Plesk server

Applicable to:

  • Plesk for Linux

Question

How to change or get a server hostname on Plesk server?

Answer

The hostname on the Plesk server can be changed:

  1. Through GUI

    1.1. Go to Tools & Settings > Server Settings 

    1.2. Fill in the Full hostname field.

    1.3. Click OK .

  2. Using CLI for Plesk 12.0 and later:

    # plesk bin server_pref --update -hostname host.example.com

In order to get server hostname use the following command:

# hostname
server.example.com

Restart sw-cp-server and sw-enginer services after that.

Have more questions? Submit a request
Please sign in to leave a comment.