How to change the server's hostname from WHM.
- Login to WHM as the root user
- Navigate to: "Home »Networking Setup »Change Hostname"
- Read the instructions on that page to avoid choosing a bad hostame
- Enter your desired hostname into the box at the bottom of the page
- Click the blue "Change" button
More details can be found here: