LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Configure local time

Reply
 
Thread Tools Display Modes
  #1  
Old 10-18-2008, 01:13 PM
clarkent clarkent is offline
New Member
 
Join Date: Oct 2008
Posts: 2
Default Configure local time

Hi,
I installed LiteSpeed web server. I'm not very experienced about its configuration, I need some help to set the local time server.
The problem is that when I install a site that uses the server time this shows a time difference about 10 hours.
I work in Italy and the servers are in America (SliceHost).
How can I do to configure the server time for my needs, can someone help me?
Thank you very much.
Bye Carlo
Reply With Quote
  #2  
Old 10-18-2008, 04:55 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
http://www.wikihow.com/Change-the-Timezone-in-Linux
Reply With Quote
  #3  
Old 02-07-2009, 05:29 PM
brrr brrr is offline
Senior Member
 
Join Date: Aug 2007
Posts: 94
The solution highlighted by mistwang has two problems for me:

(1) some VPS implementations don't let you touch the hardware clock, so running any hwclock commands as the wiki article suggests wont work;
(2) it sets the system time on a server wide basis.

However I want to set the [web] server time on a virtual host basis.

Apache lets you do so using the SetEnv TZ Europe/Bucharest command in either httpd.conf or .htaccess per virtual host. Setting it in Apache allows the server logs and also any applications run on the virtual host to adopt the specified local time.

Can this be accomplished in LiteSpeed? Would LSWS support the SetEnv TZ directive if I specified it in a .htaccess file within the root of a LSWS virtual host?

Even if the answer is yes, it would be nice if LSWS had setting the local TZ as a native option, manageable from within the Admin control panel. I don't like using .htaccess when I am using LSWS.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:04 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.