Hoping someone can shed some light for me on a question I’ve been trying to answer now for days. I am running CentOS 6.5 x64 in Amsterdam using VestaCP and multiple WP sites without problem. My question is regarding the timestamp on the apache logs which is different to the server time and the php.ini time and here is an example
Item 1 is in fact one hour behind items 2 and 3 and looks to be timing from New York maybe and I appreciate the -0500 makes it GMT? Having set the timezones for Centos and also for php.ini for Amsterdam is there any way to to get item 1 to match them or at least to be in sync with them?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
How did you set the system time? I just did a little testing, and it seems that using
tzselect
will update the system time but Apache won’t reflect that. It is if I manually run:Most likely this is due to the init script starting Apache not reading the environmental variable from the user session.