Log file times and dates
Hi, i have a vps and when i was searching for an error in the apache log i could not find the error date and time, it did not exist. So after looking through the apache log file i noticed that some dates on the following day (one day ahead). I have my domains set to america central time so i am curious why the apache log file entries do not have the same date and time as the error_log entry? Are they set by colocation?
Thanks :)
-
Hi,
The Apache error log should use the same timezone as the server clock. For example, if you run the date command via SSH it will show you the current server time. The server's timezone can be modified via WHM > Server Time. There is a separate timezone value that is set within the PHP configuration (php.ini/.user.ini) that would be used by the PHP error logs, but this setting would not affect the Apache error log.
1 -
great thanks :)
0
Please sign in to leave a comment.
Comments
2 comments