error_log file in ftp??

Discussion in 'Programming' started by nevret2, Jul 5, 2008.

  1. #1
    hello, i get in mt website's ftp a error_log file

    its a wordpress site and it gets like 800mb big everytime

    i dont want this error_log file gets created, how can i avoid this?

    maybe with php.ini or .hacces file?? how??

    thnx,
     
    nevret2, Jul 5, 2008 IP
  2. pr0t0n

    pr0t0n Well-Known Member

    Messages:
    243
    Likes Received:
    10
    Best Answers:
    10
    Trophy Points:
    128
    #2
    error_log is created by apache. You could try something like this for example:
    Put this in .htaccess (it will disable repeated errors to be logged in, so that will probably reduce your error log a lot)

    # disable repeated error logging
    php_flag ignore_repeated_errors true
    php_flag ignore_repeated_source true
    Code (markup):
    Or maybe try something like this.. though I'm not sure about this part (also to put in .htaccess):
    # disable php errors to log or display
    php_flag log_errors off
    php_flag display_errors off
    
    Code (markup):
    I hope this might help.
     
    pr0t0n, Jul 5, 2008 IP