FORUM HOME | WHUK BLOG   
WEB HOSTING UK AFFORDABLE WEBSITE HOSTING SERVICES IN UNITED KINGDOM
PHP LINUX SHARED HOSTING WINDOWS ASP.NET HOSTING PACKAGES
ECOMMERCE HOSTING ASP MSSQL MS ACCESS ODBC FRONTPAGE HOSTING
CPANEL WHM FANTASTICO RESELLER DEDICATED SERVER WEB HOSTING
CHEAP PLESK CPANEL HTML MYSQL BEST UK VPS HOSTING COMPANY
CHEAP RELIABLE UK HOSTING PROVIDER SINCE 2001
MANAGED WEB HOSTING SERVICE
AFFORDABLE WEBSITE HOSTING SERVICES IN UNITED KINGDOM

Web Hosting UK Forums | Linux Windows Dedicated Server and cPanel VPS Hosting Forum » Technical Support » Linux Dedicated Servers

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 15-10-11, 09:06 AM
LEE LEE is offline
Senior Member
 
Join Date: Jan 2011
Posts: 130
Default Changing Hostname for a Server

I was wondering if somebody could let me know if it is recommended to change the hostname from the WHM or this needs to be done from SSH? Is there any difference?

I am not looking to make any changes now, just a query.
Reply With Quote

  #2 (permalink)  
Old 15-10-11, 09:44 AM
Sales Manager
 
Join Date: May 2006
Posts: 1,571
Send a message via AIM to James Send a message via MSN to James Send a message via Yahoo to James
Default

Hi Lee,

The server host name can be changed from both WHM and through SSH. But WHM often gives error while changing the host name. If you try to change the host name through WHM, you may get errors like failed to change the host name, host name reverted to original host name after reboot, or invalid cPanel license file error. It's always good to update the host name from SSH.

Follow the below steps to change the host name.

1. Login to server via SSH as root.

2. Run the following command to change host name:

Quote:
hostname servername.yourdomain.com
3. Run the following command to update the cPanel license information on the new host name to avoid invalid cPanel license error:

Quote:
/usr/local/cpanel/cpkeyclt
__________________
WebHosting.UK.com :: Leader in Web Hosting
cPanel Hosting | Windows Hosting | Reseller Hosting | CLOUD HOSTING 100% Uptime
Dedicated Servers - Fully Managed UK dedicated servers with 24x7x365 Support
Great Opportunity:: Join our Affiliate Program for FREE & earn up to £300 per sale.
Follow Us on Twitter and FaceBook
Reply With Quote

  #3 (permalink)  
Old 09-11-11, 10:18 AM
Junior Member
 
Join Date: Aug 2011
Posts: 14
Default

Quote:
Originally Posted by James View Post
Hi Lee,

The server host name can be changed from both WHM and through SSH. But WHM often gives error while changing the host name. If you try to change the host name through WHM, you may get errors like failed to change the host name, host name reverted to original host name after reboot, or invalid cPanel license file error. It's always good to update the host name from SSH.

Follow the below steps to change the host name.

1. Login to server via SSH as root.

2. Run the following command to change host name:



3. Run the following command to update the cPanel license information on the new host name to avoid invalid cPanel license error:
Thanks for your reply, i was really looking for this kind of stuff! Its very useful to me.

Last edited by Ross; 09-11-11 at 05:42 PM. Reason: Self Promotion
Reply With Quote

  #4 (permalink)  
Old 25-11-11, 04:55 AM
new member
 
Join Date: Aug 2011
Posts: 7
Default Hi Lee

James has posted a nice info. I am impressed and agree with him. You just look at it. And thanks James for sharing such a useful information.
Reply With Quote

  #5 (permalink)  
Old 26-11-11, 03:24 AM
LEE LEE is offline
Senior Member
 
Join Date: Jan 2011
Posts: 130
Default

thank you for the detailed explanation.

I will use server.mydomain.com. Do I understand correctly that the domain name has to be registered ?
Reply With Quote

  #6 (permalink)  
Old 26-11-11, 04:15 AM
Marketing Team
 
Join Date: Feb 2011
Posts: 373
Default

Hello

Yes you will have to register the domain and the sub domains linked to it.
Reply With Quote

  #7 (permalink)  
Old 26-11-11, 04:34 AM
new member
 
Join Date: Jan 2011
Posts: 7
Default

Quote:
Originally Posted by LEE View Post
thank you for the detailed explanation.

I will use server.mydomain.com. Do I understand correctly that the domain name has to be registered ?
You need to get the domain registered before adding it as a hostname. The sub-domain (server) will have an A entry on your server.
Reply With Quote

  #8 (permalink)  
Old 30-11-11, 03:43 AM
new member
 
Join Date: Jan 2011
Posts: 6
Default

The domain that you plan to use as the hostname has to be registered.

If you use mybox.somedomain.com, then here somedomain.com has to be registered. I remember adding it from the WHM from the Add hostname option, it automatically created the DNS entries. But I still had issues with it and later found that if you have a Virtual server you would also need to set it from the main vps node.
Reply With Quote

  #9 (permalink)  
Old 20-01-12, 09:16 AM
Member
 
Join Date: May 2010
Posts: 63
Post Re:

I think it's better if you contact to your web hosting provider. They will give you proper guidance about this.
Reply With Quote

  #10 (permalink)  
Old 20-01-12, 11:40 AM
Senior Member
 
Join Date: Oct 2009
Posts: 345
Default

Quote:
Originally Posted by Nile Hadwards View Post
I think it's better if you contact to your web hosting provider. They will give you proper guidance about this.

Right, in case if you are not using manage hosting services then you can follow the steps explained by James.
Reply With Quote

  #11 (permalink)  
Old 25-01-12, 05:45 AM
Junior Member
 
Join Date: Dec 2011
Posts: 11
Default

Quote:
Originally Posted by Pongers View Post
Right, in case if you are not using manage hosting services then you can follow the steps explained by James.
James' step by step tutorial was good. The problem with contacting some webhosting providers is that their support is not responding
Reply With Quote

  #12 (permalink)  
Old 01-02-12, 08:57 AM
Junior Member
 
Join Date: Jan 2012
Posts: 15
Default Changing Hostname for a Server

When you move your website to a new host, you need to tell the DNS system that your domain name is now accessible on a different IP address.thanks for share.
Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT. The time now is 09:15 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Copyright 2001-2010 Web Hosting UK. All rights reserved.
Web Hosting UK Forum





Site Map

Shared Cloud
Shared Cloud From £1

Affiliate Program
Earn up to £300 Per Sale

Dedicated Servers
Dedicated Server Hosting

Cloud Hosting
Cloud Server Hosting

Load Balanced Server
Load Balancing Server

VPS Hosting
Linux VPS Hosting

Windows VPS
Windows 2003 VPS

Zimbra Hosting
Zimbra Email Hosting

cPanel Hosting
Shared Linux Hosting

Windows Hosting
Shared Windows Hosting

Coldfusion Hosting
Windows Coldfusion Hosting

cPanel Reseller Hosting
Reseller Hosting

Windows Reseller
Windows Reseller Hosting

Email Web Hosting
Email Hosting

Semi-Dedicated Server
Semi-Dedicated Hosting

Remote Backup Plans
Offsite Backup Service


cpanel hosting
Knowledgebase Articles

Pre-Sales Question
Web Hosting FAQ's

Dedicated Hosting
Dedicated Server FAQ's

Virtual Private Servers
VPS Hosting

PHP MySQL Hosting
cPanel Hosting

Windows Hosting
ASP MSSQL Hosting

Domain Name
Domain registration FAQ's

CMS Hosting
CMS Hosting FAQ's

Payment Gateways
Payment FAQ's


Support Tutorials

cPanel Tutorials
cPanel Flash Tutorials

Wordpress Tutorials
Wordpress Flash Tutorials

Plesk Tutorials
Plesk Flash Tutorials

PhpMyadmin Tutorials
PhpMyadmin Flash Tutorials

Drupal Tutorials
Drupal Flash Tutorials

Mambo Tutorials
Mambo Flash Tutorials

Joomla Tutorials
Joomla Flash Tutorials

More Hosting Tutorials