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

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

WBOY
WBOYOriginal
2016-06-13 13:39:271538browse

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

会不会是被攻击了?

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

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

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