Where is a web-server's error log?

If your web-server is Apache:

Where is Apache’s error log located?

If your web-server is Nginx:

Where is Nginx’s error log located?

It is possible that you are using both Apache and Nginx simultaneously, and you need check both the error logs in this case.

See also: