PHP syntax errors generate Error 500 but no log entry

  • In case of a PHP Fatal Error (for example, a syntax error) the web server delivers Error 500, however, does not generate any log entry in error.log. This makes debugging very difficult.


    i-MSCP 1.2.17
    PHP-FPM
    Debian 8.5

  • @tobi357


    We will never enable PHP log by default. In shared hosting environments where you can have numerous hosted PHP sites, this is a crazy thing. Instead, the customers should enable them at runtime. See the PHP documentation to known how.


    BTW: You could also use this listener to enable PHP log for all PHP sites: https://github.com/i-MSCP/imsc…p_confoptions_override.pl


    Thread closed.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206