Logs (hosting)

Uit De Vliegende Brigade
Naar navigatie springen Naar zoeken springen

An overview of the most important logs on webservers, especially our WooCommerce sites.


The PHP error log seems the most important log. It actually includes important stuff that I would have expected to be included in MySQL logs.

Usual locations:

  • /var/log/php_error.log (h2, nltmp)
  • /var/log/php/error.log (h1).


Quite important. Usual location:


Due to security settings on files & folders, it's a bit more complicated to read. E.g.:

  • sudo ls -alFh /var/log/mysql
  • sudo tail /var/log/mysql/error.log -n 100


I don't use Apache logs so much for troubleshooting websites. I do use them for estimating traffic, like traffic from bots.

Usual logs:

  • /var/log/apache2/access.log
  • /var/log/apache2/error.log.

I really like this real-time view of the Apache log:

sudo tail -f /var/log/apache2/access.log

See also