Apache Error Log

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AdPatron
    No commissions, no fees.
    • Apr 2003
    • 17706

    #1

    Apache Error Log

    Anyone know how to turn this off for good? I've commented it out in the conf file, but it still comes back and gets overloaded with messages.
  • Lassitor
    Confirmed User
    • Jun 2009
    • 278

    #2
    Send it to > DEV NULL

    Comment

    • AdPatron
      No commissions, no fees.
      • Apr 2003
      • 17706

      #3
      Originally posted by Lassitor
      Send it to > DEV NULL
      Can you you give me the command I would use to achieve this?

      Comment

      • AdPatron
        No commissions, no fees.
        • Apr 2003
        • 17706

        #4
        ErrorLog /dev/null ?

        Comment

        • AdPatron
          No commissions, no fees.
          • Apr 2003
          • 17706

          #5
          I went ahead and used this ^^^ since that is what most people say when I looked it up on google. Thanks! Seems to be working.

          Comment

          • CodeR70
            Confirmed User
            • Jul 2009
            • 364

            #6
            Originally posted by JoesTraffic
            Anyone know how to turn this off for good? I've commented it out in the conf file, but it still comes back and gets overloaded with messages.
            Maybe you should try to fix the errors. Ignoring them can be a very bad idea.

            Comment

            • rob04
              Confirmed User
              • Sep 2004
              • 150

              #7
              Originally posted by CodeR70
              Maybe you should try to fix the errors. Ignoring them can be a very bad idea.
              Agreed, if it's taking up too much space or logging too much you change the level of logging if the errors aren't realistic to fix.

              Comment

              • fatfoo
                ICQ:649699063
                • Mar 2003
                • 27763

                #8
                JoesTraffic is good quality traffic. No doubt. I used to get 250%+ productivity from it. But, that was a few years ago.
                Send me an email: [email protected]

                Comment

                • AdPatron
                  No commissions, no fees.
                  • Apr 2003
                  • 17706

                  #9
                  Originally posted by CodeR70
                  Maybe you should try to fix the errors. Ignoring them can be a very bad idea.
                  They're not errors. Most of the messages are just missing files like favicon.ico.

                  I however have fixed this problem by pointing the error log to dev null.

                  Comment

                  • AdPatron
                    No commissions, no fees.
                    • Apr 2003
                    • 17706

                    #10
                    Originally posted by rob04
                    Agreed, if it's taking up too much space or logging too much you change the level of logging if the errors aren't realistic to fix.

                    As I said in my first post, the error log was still recording even though I turned it off. It shouldn't have been logging any messages at all.

                    Comment

                    • maxprohost
                      Registered User
                      • Nov 2009
                      • 93

                      #11
                      Try setting the error log to clear itself every so often in the cron. prevents the log from bloating, but still keeps it around just in case.
                      The Adult Hosting Specialist! MaxProHosting.com
                      $89 Managed Dedicated Servers, $6.95 Virtual w/ cPanel
                      No yearly contracts, Just honest low monthly pricing 877.814.4300

                      Comment

                      • AdPatron
                        No commissions, no fees.
                        • Apr 2003
                        • 17706

                        #12
                        Originally posted by maxprohost
                        Try setting the error log to clear itself every so often in the cron. prevents the log from bloating, but still keeps it around just in case.
                        It was suppose to be set to off, which is what the problem was.... it wouldn't turn off.

                        Comment

                        • CodeR70
                          Confirmed User
                          • Jul 2009
                          • 364

                          #13
                          Originally posted by JoesTraffic
                          It was suppose to be set to off, which is what the problem was.... it wouldn't turn off.
                          Joe, I know these things can be very annoying, but there are times when you really need the error log. Switching it on when you need it might be too late to really try to track down an issue.

                          Another thing which is a good option is to rotated your logs. This can be based on size or based on a time period. You can also do this with your access log or other log files. In this way you avoid having the logs grow and grow but you still keep the advantage of having them around when you need to. In addition you can have your inactive logs compressed so they don't eat your drive space. All this is a fully automated process. So you or your admins have to set it up once and after that you never have to worry about them anymore.

                          If you notice something in your log file you think is fixable but you dont know how then maybe post some log lines here. If it PHP related or such then maybe I can help.

                          Anyway, just a few thoughts. Feel free to drop me a line private if you prefer.

                          Comment

                          • AdPatron
                            No commissions, no fees.
                            • Apr 2003
                            • 17706

                            #14
                            Originally posted by CodeR70
                            Joe, I know these things can be very annoying, but there are times when you really need the error log. Switching it on when you need it might be too late to really try to track down an issue. Another thing which is a good option is to rotated your logs. This can be based on size or based on a time period. You can also do this with your access log or other log files. In this way you avoid having the logs grow and grow but you still keep the advantage of having them around when you need to. In addition you can have your inactive logs compressed so they don't eat your drive space. All this is a fully automated process. So you or your admins have to set it up once and after that you never have to worry about them anymore. If you notice something in your log file you think is fixable but you dont know how then maybe post some log lines here. If it PHP related or such then maybe I can help. Anyway, just a few thoughts. Feel free to drop me a line private if you prefer.


                            I have it taken care of, I've been a web developer since '94 (C/C++, Perl, PHP, etc). This is however the first time the error log has refused to turn itself off when I needed it to. In the past, I've always left it on so I could debug my code. However, my system (which I coded) is extremely stable and if there is a problem, I'll know how to fix since I code everything long hand.

                            Comment

                            • CodeR70
                              Confirmed User
                              • Jul 2009
                              • 364

                              #15
                              Originally posted by JoesTraffic
                              I have it taken care of, I've been a web developer since '94 (C/C++, Perl, PHP, etc). This is however the first time the error log has refused to turn itself off when I needed it to. In the past, I've always left it on so I could debug my code. However, my system (which I coded) is extremely stable and if there is a problem, I'll know how to fix since I code everything long hand.
                              Weird, it's a real mystery to my that you want to switch it off especially knowing your experience now. Anyway, you know best. ;)

                              Comment

                              • AdPatron
                                No commissions, no fees.
                                • Apr 2003
                                • 17706

                                #16
                                Originally posted by CodeR70
                                Weird, it's a real mystery to my that you want to switch it off especially knowing your experience now. Anyway, you know best. ;)


                                I'm not ignoring my own issues, you can't expect people to do the same thing as you.

                                Comment

                                • CodeR70
                                  Confirmed User
                                  • Jul 2009
                                  • 364

                                  #17
                                  Originally posted by JoesTraffic
                                  I'm not ignoring my own issues, you can't expect people to do the same thing as you.
                                  True, but a 26 years experience developer who want to switch of an overloaded error log and then claims to have a stable system and know how to fix issues is not really convincing to me.

                                  Comment

                                  • AdPatron
                                    No commissions, no fees.
                                    • Apr 2003
                                    • 17706

                                    #18
                                    Originally posted by CodeR70
                                    True, but a 26 years experience developer who want to switch of an overloaded error log and then claims to have a stable system and know how to fix issues is not really convincing to me.

                                    You basically just said the same thing to me, but with different words. Why are you wasting your time on this?

                                    Comment

                                    • CodeR70
                                      Confirmed User
                                      • Jul 2009
                                      • 364

                                      #19
                                      Originally posted by JoesTraffic
                                      You basically just said the same thing to me, but with different words. Why are you wasting your time on this?
                                      Yeah, I wondering myself as well. The thing is, if you had spend 10 seconds on Google you would not have wasted all our time. People tried to help you in this thread but your ego did not like it very much.

                                      Comment

                                      Working...