Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
vps:incorrect-time [2009-12-03 17:17:07]
garrett.plasky
vps:incorrect-time [2011-07-11 23:10:43]
garrett.plasky Approved
Line 3: Line 3:
 The VPS system clock is synced with the dom0 (host) clock unless an independent "wall" clock is specified. This is done by performing the following: The VPS system clock is synced with the dom0 (host) clock unless an independent "wall" clock is specified. This is done by performing the following:
  
-<code console>echo 1 > /proc/sys/xen/independent_wallclock</code>+<sxh shell>echo 1 > /proc/sys/xen/independent_wallclock</sxh>
  
 To make this change persist on boot, edit /etc/sysctl.conf and add the following on a new blank line: To make this change persist on boot, edit /etc/sysctl.conf and add the following on a new blank line:
  
-<q>xen.independent_wallclock = 1</q>+<sxh plain>xen.independent_wallclock = 1</sxh>
  
 Then you may set the time as you desire, or sync it with an NTP server, e.g.: Then you may set the time as you desire, or sync it with an NTP server, e.g.:
  
-<code console># rdate -s rdate.cpanel.net</code>+<sxh shell>ntpdate ntp1.ndchost.com</sxh> 
 + 
 +Syncing your time via NTP is considered good practice to ensure proper server functionality. By default the <c>ntpdate</c> command is not installed, so you will need to add it. The process dependson your distro. For CentOS/RedHat/Fedora Core: 
 + 
 +<sxh shell>yum -y install ntp</sxh> 
 + 
 +For Ubuntu/Debian: 
 + 
 +<sxh shell>apt-get install ntp</sxh> 
 + 
 +For **cPanel servers**: 
 + 
 +Log into the WHM and go to Main >> Server Configuration >> Server Time and select //Sync with Time Server//.
 {{tag>vps how-to}} {{tag>vps how-to}}