Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 31st March 2008, 16:52
josej josej is offline
Junior Member
 
Join Date: Mar 2008
Posts: 4
Thanks: 1
Thanked 1 Time in 1 Post
Default Multiple TimeZone per Site/User chrooted

Hello,

I'm jose from Spain, in advance, sorry my english is very bad,

I have ISPConfig installed in two servers with Linux HA and DRBD

One of the sites is an E-Commerce site in EEUU ( .us ) and another E-Commerce site is in Spain ( .es ).

My question is about TimeZones

I want differents TimeZones per Site, I have read somthing about this, and i think that its possible for differents users, modifying /home/someuser/.bashrc in chrooted enviroment by setting the TZ variable.

With ISPConfig and his users its possible to do somthing similar?

If not is possible, what can I do?


sorry but my english is too bad

Thanks
Reply With Quote
Sponsored Links
  #2  
Old 1st April 2008, 16:21
josej josej is offline
Junior Member
 
Join Date: Mar 2008
Posts: 4
Thanks: 1
Thanked 1 Time in 1 Post
 
Default I have one solution

My solution simple.

On the init script (config for E-Commerce in USA or Spain or France etc..) in the E-Commerce Site I add the line:

$GLOBALS["time_zone_site"]= "America/Los_Angeles";
putenv('TZ=America/Los_Angeles');


And in the interface to Adodb,in the "connect function"


function connectFunction{
{
$this->db = new ADOnewConnection('mysqli');
...
...
$this->db->Execute("SET time_zone = '".$GLOBALS["time_zone_site"]."'");
}


Thats all...
Thanks
Reply With Quote
The Following User Says Thank You to josej For This Useful Post:
falko (1st April 2008)
Reply

Bookmarks

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig on multiple servers - Certificate error martinfst Developers' Forum 5 7th February 2010 16:17
ISPconfig to host multiple domains in one IP with multiple DynDns addresses agelospanagiotakis Installation/Configuration 23 2nd April 2008 11:10
Multiple name servers? webking General 1 13th April 2007 09:24
Multiple IPs on a single ISPConfig install? Craig Installation/Configuration 4 14th December 2006 18:22
Multiple MySQL Queries - with Postfix-mysql, courier-authmysql, maildrop-mysql... snowfly HOWTO-Related Questions 4 7th July 2006 04:19


All times are GMT +2. The time now is 17:58.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.