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

Follow

Comments

2 comments

  • 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

    plesk-ubuntu-s-1vcpu-1gb-nyc1-01.local

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

    0
    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

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request