Skip to main content

Need help disabling php error_log file

Comments

3 comments

  • cPRex Jurassic Moderator

    Hey hey!  I would expect the local php.ini to handle this change normally.  Could you create a PHP info page on the domain and see if the local values are being read properly?  That's the first thing I'd check in this situation.

    https://support.cpanel.net/hc/en-us/articles/360052760494-How-to-use-a-PHPInfo-file-for-troubleshooting-PHP-issues

    0
  • Benito

    Hi!

    Thanks a lot for the tip, I can't believe I forgot to add a phpinfo. Looking at the different variables I found one that does work.

    This does nothing.

    error_reporting = Off

    This is the solution to disable the error_log, you just have to add it using the advanced editor in the MultiPHP INI editor.

    log_errors = off
    0
  • cPRex Jurassic Moderator

    I'm glad that led you to the answer!  error_reporting typically just suppresses the error from showing in the interface, while log_errors keeps the log from being generated at all.

    0

Please sign in to leave a comment.