Home   |   Products   |   Order   |   Support   |   ? !1 UK Web Hosting
 

Changing the Time on a Virtual Server
You can change the current date and time on your Virtual Server to your own local time, or the current time in any other time zone that you want to use. For example, to change the current time on your Virtual Server to the current time in the USA Pacific Standard Time zone, do the following according to your Virtual Server O/S:

  • FreeBSD
    Connect to your Virtual Server via Telnet or SSH and complete these steps.

    1. Copy the time zone file onto your Virtual Server.

      % chmod 600 ~/etc/localtime 
      % cp /usr/share/zoneinfo/America/Los_Angeles ~/etc/localtime
      

    2. Add the following new line to the ~/.cshrc file.

      setenv TZ America/Los_Angeles
      

    To change to the current time in some other time zone, substitute any time zone available in the following directory for America/Los_Angeles above.

    /usr/share/zoneinfo

  • Solaris
    Connect to your Virtual Server via Telnet or SSH and complete these steps.

    1. Copy the /etc/default/init file onto your Solaris Virtual Server.

      % mkdir ~/etc/default
      % cp /etc/default/init ~/etc/default
      

    2. Edit the TZ line in the new ~/etc/default/init file to read like this:

      TZ=US/Pacific
      

    3. Copy the /usr/share/lib/zoneinfo/US/Pacific file onto your Solaris Virtual Server.

      % mkdir ~/usr/share/lib/zoneinfo/US
      % cp /usr/share/lib/zoneinfo/US/Pacific  ~/usr/share/lib/zoneinfo/US
      

    4. Add the following new line to the ~/.cshrc file.

      setenv TZ US/Pacific
      

    To change to the current time in some other time zone, substitute any time zone available in the following directory for US/Pacific above.

    /usr/share/lib/zoneinfo

  • BSD/OS Upgrade!
    Connect to your Virtual Server via Telnet or SSH and issue these commands:

    % chmod 600 ~/etc/localtime
    % cp /usr/share/zoneinfo/posix/US/Pacific ~/etc/localtime
    

    To change to the current time in some other time zone, substitute any time zone available in the following directory for US/Pacific above.

    /usr/share/zoneinfo/posix

  • Huh?
    If you don't know the Virtual Server O/S, try the following:

Did It Work?
To make sure you set the time zone correctly, do the following:

% virtual date

NOTE: Be sure to Restart Your Web Server so that it will use the new time you have set.


Site Map  |  Contact Us!
Copyright © 1998-2001 Bright Builders, Inc. All rights reserved.
Last Modified: Wed May 16 17:38:00 2001 GMT
Page Built: Mon Jul 2 19:57:51 2001 GMT

   
A L S O  S E E
· Virtual Server Help