Jezza22 Posted September 1, 2009 Share Posted September 1, 2009 Hi All, I have an extremely large error.log file and would like advice on why and what to do to stop it getting so large. Obviously something is seriously wrong or configured incorrect please advice.. Its currently at 10,112,840 Kb Jez.. Quote Link to comment https://forums.phpfreaks.com/topic/172750-extremely-large-errorlog/ Share on other sites More sharing options...
corbin Posted September 2, 2009 Share Posted September 2, 2009 Hrmmm, you have a 10GB error log? My suggestion is to find out what is causing the errors and stop it. Other than that, you could try less detailed error reporting, or you could pipe the errors through a program like rotatelogs and split it every 20MB or something and gzip them. (Or just do something with the files... You get the point.) Quote Link to comment https://forums.phpfreaks.com/topic/172750-extremely-large-errorlog/#findComment-910675 Share on other sites More sharing options...
steviewdr Posted September 4, 2009 Share Posted September 4, 2009 On some installs, apache will keep building up a single error log file, reaching gigs in size. You want to install "logrotate" (apt-get install logrotate etc...) if your on linux. It rotates the log files, gzips them and looks after them nicely. -steve Quote Link to comment https://forums.phpfreaks.com/topic/172750-extremely-large-errorlog/#findComment-912379 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.