Hi,
I'm running a small hosting-server and i'm having a problem. I'm running Debian Lenny; apache2, php5, mysql etc. The usual stuffs.
I have something like 20 virtualhosts on apache. I have disabled the error messages in php.ini so errors don't show up in the browser. All PHP error messages goes to users homedir ~/logs/error.log. Users have read-only access to their ~/logs directory and their error.logs file. Logrotate is rotating the logs. Everything is running smoothly.
One user is building/testing a new site of his. He's getting a lot of error messages, and he's debugging a lot. Every now and then something wierd is happening. The user makes something or some PHP-script/software what he's using is not working which causes a PHP error. The error-message goes to error.log as usual but apache/PHP repeats the error-message like million times until the error.log fills all my available harddrive.
This causes the bigger problems. My harddrive is filled up which of course causes many other problems. Mysql won't accept new connections etc. The main problem is that one user and his error.log can fill up all my harddrive.
I have no idea why some PHP-code/script repeats the error-message a million times. To be honest i don't want to know but i want to prevent this happening again. I don't mind if one error.log is huge, i can always clean it up but if it causes system-wide problems then it's a major problem.
All my users have a quota setup. They have 100Mb to 500Mb quota. The error.log is in ~/logs directory but the owner is not the user himself.
What can i do? What changes should i do? I hope there's some easy sollution and i just can't see it atm
btw. Thanks for the great site and awesome forums!
Recent comments
1 day 6 hours ago
1 day 8 hours ago
1 day 20 hours ago
1 day 23 hours ago
2 days 3 hours ago
2 days 9 hours ago
2 days 19 hours ago
2 days 20 hours ago
3 days 5 hours ago
3 days 6 hours ago