Search code examples
phperror-logging

PHP error log not updating


My apache error log is located at /var/log/apache2/error.log. I've been using it to debug a simple PHP script I'm writing.

Now, suddenly it isn't catching anything. I've tried putting in known errors like calling functions that don't exist and nothing shows up.


Solution

  • Solved by restarting Apache. It turns out that I "broke" it myself by editing the log file.
    Note to self: Do not do that.