How to set php error log path

王林
Release: 2023-03-03 14:58:02
Original
4870 people have browsed it

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.

How to set php error log path

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!

Related labels:
source:php.cn
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 Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!