GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   Apache Error Log (https://gfy.com/showthread.php?t=948999)

AdPatron 01-18-2010 12:45 PM

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 01-18-2010 01:27 PM

Send it to > DEV NULL

AdPatron 01-18-2010 03:29 PM

Quote:

Originally Posted by Lassitor (Post 16758883)
Send it to > DEV NULL

Can you you give me the command I would use to achieve this?

AdPatron 01-18-2010 03:32 PM

ErrorLog /dev/null ?

AdPatron 01-18-2010 03:38 PM

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.

CodeR70 01-18-2010 04:56 PM

Quote:

Originally Posted by JoesTraffic (Post 16758695)
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.

rob04 01-18-2010 05:26 PM

Quote:

Originally Posted by CodeR70 (Post 16759560)
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.

fatfoo 01-20-2010 10:20 AM

JoesTraffic is good quality traffic. No doubt. I used to get 250%+ productivity from it. But, that was a few years ago.

AdPatron 01-20-2010 11:28 AM

Quote:

Originally Posted by CodeR70 (Post 16759560)
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.

AdPatron 01-20-2010 11:31 AM

Quote:

Originally Posted by rob04 (Post 16759652)
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.

maxprohost 01-20-2010 11:45 AM

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.

AdPatron 01-20-2010 11:54 AM

Quote:

Originally Posted by maxprohost (Post 16765897)
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.

CodeR70 01-20-2010 02:05 PM

Quote:

Originally Posted by JoesTraffic (Post 16765920)
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.

AdPatron 01-20-2010 03:02 PM

Quote:

Originally Posted by CodeR70 (Post 16766350)
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.

CodeR70 01-20-2010 04:06 PM

Quote:

Originally Posted by JoesTraffic (Post 16766552)
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. ;)

AdPatron 01-20-2010 04:47 PM

Quote:

Originally Posted by CodeR70 (Post 16766850)
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.

CodeR70 01-20-2010 05:09 PM

Quote:

Originally Posted by JoesTraffic (Post 16767094)
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.

AdPatron 01-20-2010 05:20 PM

Quote:

Originally Posted by CodeR70 (Post 16767230)
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?

CodeR70 01-20-2010 05:34 PM

Quote:

Originally Posted by JoesTraffic (Post 16767259)
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.


All times are GMT -7. The time now is 03:32 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123