How to secure Plesk and mail server with Let's Encrypt certificate via CLI?




  • Avatar
    Ryan Johnson (Edited )
    plesk bin server_pref --get-hostname

    does not give the correct hostname. It gives some local-only host name for the server, like


    where the first part (before ".local") is the name of the resource in DigitalOcean's interface.

    Comment actions Permalink
  • Avatar
    Mikhail Shport

    Hi Ryan,

    The mentioned command shows the information that is set in Plesk > Tools & Settings > Server Settings > Full hostname field.

    Sometimes, the hostname of the server itself does not change after it is set via the Plesk UI. In that case, it should be changed manually.

    You may take a look at this article for help: How to change or get the server hostname on Plesk server

    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request