By tech254169
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?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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:
ln -sf /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime
service httpd restart
Most likely this is due to the init script starting Apache not reading the environmental variable from the user session.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.