Home  >  Article  >  Backend Development  >  How to set error log storage path in php

How to set error log storage path in php

王林
王林Original
2020-07-31 14:29:513401browse

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.

How to set error log storage path in php

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:What does PHP hook mean?Next article:What does PHP hook mean?