Quantcast How to change hostname in Linux, when cPanel or Plesk fails - digitalFAQ Forum
Go Back    Forum > Digital Publishing / Web Sites > Website and Server Troubleshooting

Reply
 
LinkBack Thread Tools
  #1  
07-29-2012, 10:30 AM
kpmedia's Avatar
kpmedia kpmedia is offline
Site Staff | Web Hosting, Photo
 
Join Date: Feb 2004
Posts: 4,296
Thanked 363 Times in 337 Posts
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.

__________________

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

- Did my advice help you? Then become a Premium Member and support this site.
- Please Like Us on Facebook | Follow Us on Twitter

- Need a good web host? Ask me for help! Get the shared, VPS, semi-dedicated, cloud, or reseller you need.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change SSH port (sshd) in Linux to increase VPS security lordsmurf SSH for VPS/Dedicated (CLI) 0 01-17-2012 07:06 AM
HostPolar Review ~ Linux VPS hosting, shared cPanel hosting kpmedia Web Hosting 2 07-08-2011 12:40 PM
Plesk Linux default vhosts folder location, edit Plesk default page kpmedia Plesk 0 04-21-2011 11:52 PM
How to restore/migrate Plesk 8 into Plesk 9 - Windows/Linux kpmedia Plesk 3 10-01-2010 02:50 AM

Thread Tools



 
All times are GMT -5. The time now is 07:41 PM