Where are the Apache and PHP log files

Ubuntu

/var/log/apache2/error.log

/var/log/apache2/access.log

Delete the content of log file

sudo truncate -s 0 /var/log/apache2/error.log

sudo service apache2 stop
sudo bash -c 'echo > /var/log/apache2/error.log'
sudo service apache2 start

References

https://askubuntu.com/questions/706128/ubuntu-clear-apache2-error-log

Leave a Reply

Your email address will not be published. Required fields are marked *