admin管理员组文章数量:1134585
my debug.log file in wp-content size in above 4GB and have trouble with that. can I delete this file from the server? if delete debug.log file ، No problem with my site? Does everything correctly run in the server?
my debug.log file in wp-content size in above 4GB and have trouble with that. can I delete this file from the server? if delete debug.log file ، No problem with my site? Does everything correctly run in the server?
Share Improve this question asked Aug 22, 2019 at 8:46 arash askariarash askari 31 silver badge2 bronze badges2 Answers
Reset to default 1debug.log is exactly what it sounds - it’s just a file that contains log information for debugging purposes.
You can easily delete it and without any fear.
But...
Debugging should not be turned on on production site - it’s a security problem.
If your debug.log file is so big, then your site has many problems. This file contains PHP notices, warnings and errors. If everything works fine, then this file is almost empty.
So the smart thing to do is:
- download that file to your local machine,
- delete it from server
- check the content of that file and try to fix as much problems as you can
- disable logging or at least make that file inaccessible.
Yes, you can remove the log, it will not affect to the website.
If you want to get log content without manipulating the file in File Managers or by FTP - try the Issues Tracker plugin.
本文标签: problem with size of debuglog file
版权声明:本文标题:problem with size of debug.log file 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736759305a1951460.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论