Where can I find error log files?

后端 未结 8 527
Happy的楠姐
Happy的楠姐 2020-12-05 00:27

Where can I find error log files? I need to check them for solving an internal server error shown after installing suPHP.

相关标签:
8条回答
  • 2020-12-05 01:14

    For unix cli users:

    Most probably the error_log ini entry isn't set. To verify:

    php -i | grep error_log
    // error_log => no value => no value
    

    You can either set it in your php.ini cli file, or just simply quickly pipe all STDERR yourself to a file:

    ./myprog 2> myerror.log
    

    Then quickly:

    tail -f myerror.log
    
    0 讨论(0)
  • 2020-12-05 01:15

    What OS you are using and which Webserver? On Linux and Apache you can find the apache error_log in /var/log/apache2/

    0 讨论(0)
提交回复
热议问题