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

Luigi Rosa lists at luigirosa.com
Tue Jun 5 14:04:16 UTC 2012


-----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

since the rotation moves the old log and then reloads Apache, you don't have
to worry about the ownership issue



Ciao,
luigi

- -- 
/
+--[Luigi Rosa]--
\

First Law of Socio-Genetics: Celibacy is not hereditary.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/OEeAACgkQ3kWu7Tfl6ZR5xACdGmRGc9sSBZVRiZy1pzuTBVv/
qsEAoKR1NfYc7lYMhtIwuYEtZd+0Rlfk
=jRtF
-----END PGP SIGNATURE-----



More information about the CentOS mailing list