Page MenuHomePhabricator

lighttpd does not record logs in $HOME/error.log
Closed, DeclinedPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

  • Create a PHP page on Toolforge under the $HOME/public_html directory (as described at https://wikitech.wikimedia.org/wiki/Help:Toolforge/Web/Lighttpd)
  • Make sure the PHP code is correct and the page loads properly in a browser when you go to yourtoolname.toolforge.org/pagename.php
  • Now introduce an error in the PHP code (e.g. try to echo a non-existing variable)

What happens?:
$HOME/error.log file which is where lighttpd is supposed to log errors remains empty.
Or at least that is what happens for me.

What should have happened instead?:
An error log should have been added to the file

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:

Event Timeline

FYI: lighttpd 1.4.56 and later allow server.errorlog to be specified per virtual host. Earlier versions of lighttpd allowed only a single, global server.errorlog to be specified.

FYI: server.breakagelog can be set in addition to server.errorlog, and server.breakagelog contains the STDERR output of CGI scripts, separate from the lighttpd server.errorlog. With lighttpd 1.4.56 and later, server.breakagelog may be specified per virtual host, too.

bd808 subscribed.

Closing for no known reproduction case.