NTP Server Time
NTP will keep your servers time in sync with other servers in your chosen time zone. As standard, all our dedicated servers use the system default timezone shipped with the installed OS package. On virtual servers, the time is set to UK time but you can change these to any time zone you like.
Follow the guide below to set up the correct time zone for you. Remember to replace the UK pool with your chosen pool. A list of NTP Pools can be found here. If you use cPanel you can use WHM to set the time on your server. Just log in and in the search bar type “time“
It’s important to note that if you run an OpenVZ or Virtuozzo server then the time is set on the host node and you cannot use this guide to change the date and time on these types of servers. We will cover ways of changing the date and time on these types of servers in another guide.
This guide is written for CentOS 6 servers.
To get started setting the time on your server just log in using SSH as the root user and run the commands one by one below. You can repeat the process to modify the timezone.
yum install ntp
Next, we want to turn on NTP in the server;
/sbin/chkconfig ntpd on
Next, let’s start NTP;
Now choose an NTP pool you want to use;
Finally, check the Date and Time in the server;
[email protected] [/] date Thu Nov 27 12:58:20 GMT 2014
How was this article – Setting the Server Time Using NTP
You might also like
More from Dedicated Servers
If you are using Cloudflare on your Apache server you will always see Cloudflare IPs in your logs and not …
Cloud-init is a popular way to automate deployments of instances in a cloud or none cloud environment. To save having …