Skip to main content

How to reset certificate or change hostname from shell

Comments

2 comments

  • cPanelMichael
    Hello, The set_hostname utility will allow you to make the change via the command line: The set_hostname Utility - Documentation - cPanel Documentation Per this document: When you run this command, the set_hostname utility performs the following actions: [LIST]
  • It updates the hostname in the /etc/sysconfig/network file, and in the kernel.
  • It updates the server's Apache configuration.
  • It updates the cPanel license.
  • It updates cPHulk.
  • It restarts MySQL".
  • It rebuilds cPanel & WHM's global cache.
  • It updates the FTP, Exim, Dovecot, and cPanel SSL certificates.
    More information on the free hostname SSL certificate is available at: Free cPanel-Signed Hostname Certificate - cPanel Knowledge Base - cPanel Documentation Thank you.
  • 0
  • speckados
    Thanks. Also I need run fater, /usr/local/cpanel/bin/checkallsslcerts because command set_hostname not work properly when change certificate.
    0

Please sign in to leave a comment.