Re: httpd logs growing heavily
Posted: Mon Jun 03, 2013 3:56 am
Thanks for your comments. Under vi /etc/php.ini I can see the date.timezone as commented, as illustrated below.
[Date]
; Defines the default timezone used by the date functions
; http://www.php.net/manual/en/datetime.c ... e.timezone
;date.timezone =
From the logs grep -R -i "log" /etc/httpd/* I can see messages "We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /usr/local/nagiosxi/html/includes/utils-status.inc.php on line 70, referer: http://10.202.21.19/nagiosxi/includes/c ... &dest=auto".
Shall I uncomment date.timezone under vi /etc/php.ini and set it as date.timezone ='Europe/Berlin'.
Kindly suggest.
Post 2:
I get below output on firing date command.
Mon Jun 3 10:59:02 CEST 2013
As such we are using time zone Europe/Oslo in our Hoegh Enivornment, so then I should set date.timezone ='Europe/Oslo' please suggest.
Aslo I believe after after making the said changes, httpd logs won't grow so tremendously with those timezone error records, kindly comment.
Last I believe that after all these changes, if I restart httpd services, I can expect to have proper log rotation of logs, with writing current records to new logs and I can delete the old grown logs.
-rw-r--r-- 1 root root 49G May 23 16:11 error_log-20121007
-rw-r--r-- 1 root root 3.6G May 23 16:11 access_log-20121007
[Date]
; Defines the default timezone used by the date functions
; http://www.php.net/manual/en/datetime.c ... e.timezone
;date.timezone =
From the logs grep -R -i "log" /etc/httpd/* I can see messages "We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /usr/local/nagiosxi/html/includes/utils-status.inc.php on line 70, referer: http://10.202.21.19/nagiosxi/includes/c ... &dest=auto".
Shall I uncomment date.timezone under vi /etc/php.ini and set it as date.timezone ='Europe/Berlin'.
Kindly suggest.
Post 2:
I get below output on firing date command.
Mon Jun 3 10:59:02 CEST 2013
As such we are using time zone Europe/Oslo in our Hoegh Enivornment, so then I should set date.timezone ='Europe/Oslo' please suggest.
Aslo I believe after after making the said changes, httpd logs won't grow so tremendously with those timezone error records, kindly comment.
Last I believe that after all these changes, if I restart httpd services, I can expect to have proper log rotation of logs, with writing current records to new logs and I can delete the old grown logs.
-rw-r--r-- 1 root root 49G May 23 16:11 error_log-20121007
-rw-r--r-- 1 root root 3.6G May 23 16:11 access_log-20121007