Home  >  Article  >  Backend Development  >  How to record error log in iis php

How to record error log in iis php

藏色散人
藏色散人Original
2020-08-07 10:51:182934browse

iis PHP error log configuration method: first find and open the "php.ini" configuration file; then modify the content to "error_log=/path/to/your/php_errors.log"; finally restart the service. .

How to record error log in iis php

Recommended: "PHP Video Tutorial"

iis php error log

First of all, PHP recording error logs has nothing to do with what web server is used. Just configure in php.ini:

error_log=/path/to/your/php_errors.log

Restart the service.

Note: PHP also supports slow logs Recording, that is, recording functions and files that take more than a specified time. The slowlog feature needs to be supported by PHP-FPM. To use PHP-FPM, please use the Linux server platform.

The above is the detailed content of How to record error log in iis 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