Home > Backend Development > PHP Tutorial > 小弟我网站目录php-errors.log太大了,如何解决

小弟我网站目录php-errors.log太大了,如何解决

WBOY
Release: 2016-06-13 10:12:10
Original
884 people have browsed it

我网站目录php-errors.log太大了,怎么解决
几个文件夹里都有这个文件,好几G,服务器也停了几小时

会不会是被攻击了?

怎样才能不让系统生成这个文件或让它保持在一定大小?

------解决方案--------------------
php.ini中一些参数专门用来限制错误信息数的 例如log-errors-max-len
参考:http://www.php.net/manual/zh/errorfunc.configuration.php#ini.log-errors-max-len

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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template