Jump to content

[SOLVED] some site is crashing my server, but which one?


michaellunsford

Recommended Posts

okay, here's how I did it. I rebooted the server, and while it was happy and fresh, I turned off apache and scanned all the logs from today by hand.

 

I found the culprit. a stupid include exploit --- oh, how I HATE hackers.

okay, here's how I did it. I rebooted the server, and while it was happy and fresh, I turned off apache and scanned all the logs from today by hand.

 

I still wonder if there's a quick command to easily figure something like this out...

Its certainly not easy to find out which site causes an issue.

 

Some things which can help:

have each site as a vhost. I.E.:

site1.server.com

site2.server.com

and have each vhost logging to seperate access logs.

 

Things I run and monitor:

webalizer for each vhost

I have mod_status enabled: http://www.debuntu.org/apache-activity-performance-mod_status

I have munin logging and creating graphs of apache. See: http://muninexchange.projects.linpro.no/?search&cid=1&pid=3&phid=123

 

Even still its quite difficult to track down what script may be affecting the performance of a server.

 

If anyone has any other tips and tricks to monitor or graph which scripts are using up a lot of resources, I would be very interested to hear.

 

-steve

you should check out my tutorial on preventing rfis - http://phpfreaks.com/tutorial/preventing-remote-file-include-attacks-with-mod-rewrite . suhosin might be something you should look into. you should also inspect all files/dirs on your sever.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.