User Tools

Site Tools


linux:apachelogs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:apachelogs [2020/08/05 00:19] – created Wulf Rajeklinux:apachelogs [2023/05/29 11:55] (current) – external edit 127.0.0.1
Line 29: Line 29:
 #PHP Errors #PHP Errors
 0 21 * * * /root/phperrors.sh >/dev/null 2>&1 0 21 * * * /root/phperrors.sh >/dev/null 2>&1
 +</code>
 +
 +OR
 + 
 +to apache logrotate in the prerotate section, ensuring the lines all terminate with backslash
 +<code - /etc/logrotate.d/apache2>
 +    prerotate
 +        if [ -f /root/phperrors.sh ]; then \
 +            /root/phperrors.sh >/dev/null; \
 +        fi; \
 +        ...other-prerotate-commands...
 +    endscript
 </code> </code>
linux/apachelogs.1596583160.txt.gz · Last modified: 2023/05/29 11:53 (external edit)