Configure local time

#1
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
 

brrr

Well-Known Member
#3
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.
 
Top