digitalFAQ.com Forum

digitalFAQ.com Forum (https://www.digitalfaq.com/forum/)
-   Website and Server Troubleshooting (https://www.digitalfaq.com/forum/web-tech/)
-   -   How to change hostname in Linux, when cPanel or Plesk fails (https://www.digitalfaq.com/forum/web-tech/4429-how-change-hostname.html)

kpmedia 07-29-2012 10:30 AM

How to change hostname in Linux, when cPanel or Plesk fails
 
Even when you change the hostname in cPanel and Plesk, it doesn't necessarily change inside of Linux. This can cause all sorts of issues and headaches when you're trying to tighten authentication (email, etc) and various rules and tasks.

Edit /etc/sysconfig/network in your favorite editor. (I use nano.)
Code:

nano /etc/sysconfig/network
Comment out whatever is there currently, and add a new entry:
Code:

HOSTNAME="server.new.com"
#HOSTNAME="server.old.com"
NETWORKING="yes"

And that should do it. :thumb:

__________________

Need a good host?
Find one here: List of the Best Web Hosts in 2012 - Shared, reseller and VPS hosting


All times are GMT -5. The time now is 04:14 AM

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.