Home>Article>Backend Development> How to set error log storage path in php
php method to set the error log storage path: 1. Find and open the php.ini configuration file; 2. Find the configuration [error_log = "\xampp\apache\logs\php_error.log"] and set it as needed Specific path; 3. Restart apache.
Specific method:
(Recommended tutorial:php graphic tutorial)
Open first php.ini configuration file;
Then find display_errors = On and modify it to: display_errors = Off; (Turn off the error prompt)
(Learning video recommendation:php video tutorial)
Then find log_errors = Off and change it to: log_errors = On; (Open error log)
Finally find the configuration error_log = "\xampp\apache\logs\php_error. log", set the specific path as needed, save the changes and restart apache.
The above is the detailed content of How to set error log storage path in php. For more information, please follow other related articles on the PHP Chinese website!