Introduction
There are a few ways that the hostname can be modified from the command line. The recommended method is to use cPanel's API.
Procedure
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Run the following command.
whmapi1 sethostname hostname=$hostname.domain.tld
Please note that "$hostname.domain.tld" needs to be replaced with the new hostname.
Comments
0 comments
Article is closed for comments.