Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 1st August 2011, 18:43
CSsab CSsab is offline
Senior Member
Join Date: Apr 2010
Posts: 174
Thanks: 19
Thanked 32 Times in 27 Posts
Default Server time sync problems

My setup is a Ubuntu Master with various Debian nodes in a multiserver setup.

I have recently experienced quite a few problems with servers being way out there with regard to timezone. In one node, mysql time was 12 hours behind when I checked the time(); function. The system time was 2 hours in front of the master's system time. What a mess that has absolutely nothing to do with ISPConfig 3 performance. This results in the following problems (that I have noticed so far)
1. Welcome email is not sent to the new email account for hours .. and hours...
2. Logs are not updated efficiently in the dashboard.
3. Zone transfers are out of whack
4. There is a general sense of lagging in a new system which should be running well.

I have things running smoothly now and am posting what I did in case it might help a few people who are experiencing similar problems.

1. Edit /etc/default/rcS and select "no" for UTC:

vi /etc/default/rcS


If this line doesn't exist .. put it in there.

2. Set the correct timezone in php5 files. On the master there will be the following files to edit (line 949 on my setup)


On a nameserver node only


will be present, of course.

So for example:

vi /etc/php5/cli/php.ini
<---- this brings you to line 949
;date.timezone =

Uncomment the line and put in your correct timezone - you will see that the list of timezones are available from http://php.net/date.timezone.


date.timezone = SomeCountry/SomeCity

3. Restart apache2 and mysql

Now check mysql database time like this:

mysql -u root -p

select now()


And correct time should be displayed.

Hope this helps a few people.
Reply With Quote
The Following User Says Thank You to CSsab For This Useful Post:
falko (2nd August 2011)
Sponsored Links


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 3 - CentOS 5.4 - SSL Problems!?! owainbaber Installation/Configuration 4 26th July 2011 18:12
ISPConfig 3 Installation - Postfix queue stuck andrew971218 Installation/Configuration 21 15th July 2011 15:42
Can't Ping over VPN RoMiONeT Server Operation 2 4th July 2010 01:19
Debian 5 Ajax error + network interface always shutting down ev0css Installation/Configuration 3 5th June 2010 13:58
Sending mail ISPConfig 3 but not receivind catza Installation/Configuration 20 19th May 2010 13:47

All times are GMT +2. The time now is 12:46.

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