PHP built-in server error log location

后端 未结 6 1437
长发绾君心
长发绾君心 2021-01-01 16:17

I don\'t know if there\'s any? but is php built in web server also save its error logs in a file? for tailing purposes, like when creating virtual host in apache.

UP

6条回答
  •  醉话见心
    2021-01-01 16:40

    To update for Mac OS X High Sierra (10.13.5): this worked for me with no need to change any PHP defaults. Just use

    error_log('*** notice this***');
    

    and tail the error log:

    tail -f /var/log/apache2/error_log
    

提交回复
热议问题