Re: [CentOS] How to rotate PHP error log - since it belongs to apache

2012-06-05 Thread Andre Goree
On 06/05/2012 10:15 AM, Alexander Farber wrote: > Hello Luigi and others, > > On Tue, Jun 5, 2012 at 4:04 PM, Luigi Rosa wrote: >> Alexander Farber said the following on 05/06/12 15:57: >> >>> So my question is for how to rotate it (esp. since it should be owned by >>> "apache" user) - what do yo

Re: [CentOS] How to rotate PHP error log - since it belongs to apache

2012-06-05 Thread John Doe
From: Alexander Farber > And also the files I rotate by the > /etc/logrotate.d/httpd > belong to root and not Apache Maybe check the create option in the man page... JD ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo

Re: [CentOS] How to rotate PHP error log - since it belongs to apache

2012-06-05 Thread Alexander Farber
And also the files I rotate by the /etc/logrotate.d/httpd belong to root and not Apache # ls -al /var/log/httpd/my_vhost_1/ -rw-r--r--. 1 root root 144298773 Jun 5 16:17 access_log -rw-r--r--. 1 root root 391503903 May 13 03:18 access_log-20120513 -rw-r--r--. 1 root root 369049605 May 20 03:35 a

Re: [CentOS] How to rotate PHP error log - since it belongs to apache

2012-06-05 Thread Alexander Farber
Hello Luigi and others, On Tue, Jun 5, 2012 at 4:04 PM, Luigi Rosa wrote: > Alexander Farber said the following on 05/06/12 15:57: > >> So my question is for how to rotate it (esp. since it should be owned by >> "apache" user) - what do you guys use? > > the standard logrotate config /etc/logrota

Re: [CentOS] How to rotate PHP error log - since it belongs to apache

2012-06-05 Thread Luigi Rosa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexander Farber said the following on 05/06/12 15:57: > So my question is for how to rotate it (esp. since it should be owned by > "apache" user) - what do you guys use? the standard logrotate config /etc/logrotate.d/httpd or a modified copy of it

[CentOS] How to rotate PHP error log - since it belongs to apache

2012-06-05 Thread Alexander Farber
Hello, I'm using CentOS 6.2 with the stock rpm php-5.3.3-3.el6_2.8.x86_64 and the following /etc/php.ini file: error_reporting = E_ALL & ~E_DEPRECATED display_errors = Off error_log = /var/log/php/php_errors.log and that file is very useful for me because I have many custom PHP-scripts at