Skip to content

Where is the Default Location of ERROR_LOG in PHP?

ERROR_LOG

After you set display_errors = Off in php.ini, the error message began to go background. You might want to know where the error message will go to. If you have never set error_log in php.ini explicitly, then the error message goes with the service httpd, which is at:

/var/log/httpd/error_log

If the visitors connect over SSL, the error message will go to:

/var/log/httpd/ssl_error_log

Leave a Reply

Your email address will not be published. Required fields are marked *