Results 1 to 12 of 12

Thread: Server Time

  1. #1
    Join Date
    Feb 2006
    Location
    New York
    Posts
    51

    Server Time

    I have my own VPS with DA as the control panel. My server time is 3 hours and 35 minutes out. How do I correct the time on my VPS?

    Thanks.

  2. #2
    Join Date
    Nov 2002
    Location
    Cal
    Posts
    46
    in CL use date command.


    "date --help"
    Last edited by kserg; 10-05-2006 at 01:54 PM.
    can't think of anything to say here so, um... Go Sharks...

  3. #3
    Join Date
    Feb 2006
    Location
    New York
    Posts
    51
    I've run the command and it fixed the time, but the seconds get faster after every minute.

    I made sure the time was changed to be exactly the same as my PCs clock. When the clocks minute changes to say, 19:07:00, the servers clock is 19:07:20, then when my PC clock hits 19:08:00 my servers clock is 19:08:30.

    How do I fix this?

  4. #4
    Join Date
    Apr 2005
    Location
    Oz
    Posts
    3,498
    Try running ntpdate time.nist.gov from shell. Then synchronize your hardware clock and what you set the OS clock to be.


    Alex

  5. #5
    Join Date
    Feb 2006
    Location
    New York
    Posts
    51
    -bash: ntpdate: command not found

    Thats what I get when trying to run 'ntpdate time.nist.gov'

  6. #6
    Join Date
    Dec 2004
    Location
    Butler,TN
    Posts
    2,413
    Hi!

    Come on, people. VPS's are not dedicated servers. More than likely..you will not be able to change the system date and time at all..let me double-check.

    >>If he has a virtuozzo or openvz vps..the answer is no...users cannot change the time or date.
    >>>The manual does recommend a host to setup a special vps that can use NTP..and set the correct time for the entire node.

    Bryon
    Last edited by bryonhost1; 10-05-2006 at 03:22 PM.
    Bryon L Harvey
    Soil Relocation Engineer

  7. #7
    Join Date
    Apr 2005
    Location
    Oz
    Posts
    3,498
    Then you need to submit a ticket to your provider. I swear I've used ntpdate on a VPS before, but maybe that was Xen... was a bit long ago, so I might be being a bit forgetful .

    Sorry, your provider should be able to help you out though,
    Alex

  8. #8
    Join Date
    May 2006
    Posts
    556
    Quote Originally Posted by adb22791
    Then you need to submit a ticket to your provider. I swear I've used ntpdate on a VPS before, but maybe that was Xen... was a bit long ago, so I might be being a bit forgetful .

    Sorry, your provider should be able to help you out though,
    Alex
    Yea, NTP on a VPS is pretty much worthless... Oh how much that pissed me off...

  9. #9
    If you're on Xen put this in your /etc/rc.local:
    Code:
    echo 1 > /proc/sys/xen/independent_wallclock

  10. #10
    Join Date
    Jan 2005
    Location
    Scotland, UK
    Posts
    2,549
    You have to change the timezone , because the time is actually controled by the node so only the timezone can be changed.

    Just create a link from a time in /usr/share/zoneinfo to /etc/localtime

    -Scott
    Server Management - AdminGeekZ.com
    Infrastructure Management, Web Application Performance, mySQL DBA. System Automation.
    WordPress/Magento Performance, Apache to Nginx Conversion, Varnish Implimentation, DDoS Protection, Custom Nginx Modules
    Check our wordpress varnish plugin. Contact us for quote: [email protected]

  11. #11
    Join Date
    Dec 2001
    Location
    127.0.0.1
    Posts
    3,640
    or you can use rdate:

    Code:
    rdate -s time.cc.columbia.edu
    Simpli Networks, LLC :: http://www.simplinetworks.com :: Proudly 100% Owned.
    Providing Affordable Managed Cloud/VPS Servers & Server Management Solutions.
    We offer REAL 24x7x365 in-house support - proudly serving our customers since 2005!
    Want to learn more? Give us a call - +1 (844) 4SIMPLI or email sales[@]simplinetworks.com today!

  12. #12
    Join Date
    Jan 2005
    Location
    Scotland, UK
    Posts
    2,549
    Quote Originally Posted by mripguru
    or you can use rdate:

    Code:
    rdate -s time.cc.columbia.edu
    Rdate is controled by the node with virtuozzo.
    Server Management - AdminGeekZ.com
    Infrastructure Management, Web Application Performance, mySQL DBA. System Automation.
    WordPress/Magento Performance, Apache to Nginx Conversion, Varnish Implimentation, DDoS Protection, Custom Nginx Modules
    Check our wordpress varnish plugin. Contact us for quote: [email protected]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •