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

How to set error log storage path in php

王林
Release: 2023-03-03 16:04:02
Original
3595 people have browsed it

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!

Related labels:
Statement of this Website
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template