Best Web Site Design, Web Hosting and Site Promotions from Internet Advertising SolutionsAbout IASDesign ServicesWeb HostingSite PromotionConsultingContact IAS
Call Today -- 859.219.0389Request a Consultation

Virtual Server Documentation Support Area

Virtual Server Documentation


Home | Getting Started | FreeBSD | Solaris | Handbook

Click Here for Web Hosting Information & Pricing 

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 issue the following commands.

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

    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.

Virtual Server Documentation


Home | About IAS | Web Design | Web Hosting | Promotion | Consulting | Support | Contact IAS

Copyright © 1995-2008 Internet Advertising Solutions, Inc.
Copyright Notice | Privacy Policy | Site Map | APR