httpd日志显示不同的时间然后机器

我有一个问题,我的networking服务器,在日志,Apache正在写有一个不同的时间戳,然后我的机器。 这与其他服务parsing这个文件造成一些问题..

[email protected]:/logs/httpd/example.com# date Thu Nov 10 10:56:12 EST 2016 [email protected]:/logs/httpd/example.com# tail -n 1 whatismyip.insecure_access.log 99.99.99.99 - - [10/Nov/2016:09:56:01 -0600] "GET / HTTP/1.1" 200 11 "-" "curl/7.29.0" /\ EST Should be -0500 

我不确定下一步要做什么改变:

 [email protected]:/logs/httpd/example.com# ll /etc/localtime lrwxrwxrwx. 1 root root 38 Oct 28 2015 /etc/localtime -> ../usr/share/zoneinfo/America/New_York [email protected]:/etc/httpd# grep "TZ" /etc/httpd/* -r /etc/httpd/conf/httpd.conf:SetEnv TZ America/New_York Binary file /etc/httpd/modules/mod_wsgi.so matches Binary file /etc/httpd/modules/mod_substitute.so matches Binary file /etc/httpd/modules/libphp5.so matches 

我如何修复logging的时间戳与当地时间同步?

如果Web服务器正在运行PHP,你也可以看看:

/etc/php.ini

通过添加或修改一行来添加时区,如下所示:

date.timezone="America/New_York"

重启apache /etc/init.d/httpd restart