Skip to main content

size of php error_log

Comments

4 comments

  • 24x7server
    Hello, I see many php error_log in my server which is of size more than 500M, sometimes 2.3G too. Isn't there anyway to limit this php error_log file? For example: /home/user1/public_html/Blogs/error_log /home3/user2/public_html/some/other/location/error_log /home/user2/public_html/administrator/error_log

    There isn't a tweak or any tool to cull the size of error_log files created in /home/username/public_html directory. You will have to setup weekly cron to cleat error logs files of your all user, Please give a try with the following cron.
    for i in `find /home/*/public_html -type f -name error_log` ;do >$i ;done
    0
  • cPanelMichael
    Hello :) There's an older thread where this is discussed at the following URL: error_log ---> how big does it grow? Thank you.
    0
  • prakashnplink
    @aaronbrad thanks but I dont think it will work as I am not sure about the exact path of error_log. @24x7server I think I can use it. But it will be good if cpanel provide some feature for it. @cPanelMichael Thanks, I missed that plus there was no fruitful info.
    0
  • cPanelMichael
    I think I can use it. But it will be good if cpanel provide some feature for it

    Feel free to open a feature request for that functionality via: Submit A Feature Request Thanks!
    0

Please sign in to leave a comment.