Home >Backend Development >PHP Problem >How to set php error log path
How to set the php error log path: 1. Open the php.ini configuration file; 2. Find log_errors=Off and change it to log_errors=On; 3. Find the error_log configuration and set the path as needed.
First open the php.ini configuration file;
(Recommended tutorial: php graphic tutorial)
Then turn off the error prompt;
Find display_errors = On and modify it to: display_errors = Off.
Then turn on the error log;
Find log_errors = Off and change it to: log_errors = On;
(Recommended video tutorial: php video tutorial)
Finally set the error log path;
error_log = "\xampp\apache\logs\php_error.log", the specific path can be set by yourself.
Save the changes and restart apache.
The above is the detailed content of How to set php error log path. For more information, please follow other related articles on the PHP Chinese website!