Hi,
I installed 3 servers recently with ViCibox 6.0.3 and noticed that on each of the servers the PHP time is not the same as the server time and DB time.
I was able to fix it by editing php.ini but i'm confused as what would cause this and what the proper procedure is for configuring NTP. As far as i know NTP is enabled by default on ViCibox. However if you use Yast to access the date/time menu it gives a warning that ntp.conf is configured manually and will be overwritten.
I tried setting the NTP configuration manually before i resorted to Yast with these steps:
nano /etc/default/ntpdate >> NTPDATE_USE_NTP_CONF=yes
nano /etc/ntp.conf
/etc/init.d/ntp restart
But when i did ntpq -p it would show an * next to LOCAL server which means it's not using an internet NTP server, right?
So i went into Yast and enabled NTP from there and forced a sync. After exiting Yast i get this warning about how i did not use UTP and need to set the clock manually twice a year due to daylight savinges but that's not true if you use NTP right?
So after forcing it via Yast and checking ntpq -p again it's now syncing from the internet pool it seems:
new1:~ # ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
LOCAL(0) .LOCL. 10 l 200 64 370 0.000 0.000 0.000
*li506-17.member 209.51.161.238 2 u 59 64 377 84.824 16.153 3.020
+time01.muskegon 64.113.32.5 2 u 61 64 377 107.657 16.704 3.060
+propjet.latt.ne 187.253.153.32 2 u 53 64 377 167.009 18.311 3.217
time.gac.edu 18.26.4.105 2 u 54 64 340 115.809 13.051 0.043
-textnews.news.c 94.228.220.14 3 u 56 64 377 1.562 11.659 3.180
Can anyone elaborate on what the proper way of setting the server, DB and PHP time is and enabling NTP on a fresh installed vicibox server? I'd like to know for the future.