Hi,
I have a web server which is randomly becoming unresponsive. I've checked for hardware problems with no luck : - no ethernet errors - no disk errors - no memory errors
So far I've managed to point the trouble at the web server since if I restart httpd (apache) it comes back to normal.
This is not a shared server so I control (or at least like to think of) what is hosted so I have two suspects: a) my own code is behaving strangely. For example, a php script that in a given situation/parameters increases the usage. b) some sort of attack. Either in conjunction to a or other vulnerability.
I am looking for advices in how can I pin point since looking at every line of code would be infeasible.
Centos 5.5 / apache / php 5.2.10
On Fri, 11 Mar 2011 14:26:03 -0400 robert mena wrote:
a) my own code is behaving strangely. For example, a php script that in a given situation/parameters increases the usage.
Log your script's activities to a file with lots of detail. Got here, found this, load is that. If you're concerned about the log getting too huge, save it to a .bak and re-create it every X minutes.
When it dies, see what the last log entries are.
robert mena wrote:
Hi,
I have a web server which is randomly becoming unresponsive. I've checked for hardware problems with no luck :
- no ethernet errors
- no disk errors
- no memory errors
So far I've managed to point the trouble at the web server since if I restart httpd (apache) it comes back to normal.
This is not a shared server so I control (or at least like to think of) what is hosted so I have two suspects: a) my own code is behaving strangely. For example, a php script that in a given situation/parameters increases the usage. b) some sort of attack. Either in conjunction to a or other vulnerability.
You said you've checked for hardware errors, Robert - how 'bout other errors. For example, when it becomes unresponsive, what's top or free tell you?
mark
Ok. centos does not offer any newer than this.
got a better place to use?
On Fri, Mar 11, 2011 at 6:31 PM, Kai Schaetzl maillists@conactive.comwrote:
Robert mena wrote on Fri, 11 Mar 2011 14:26:03 -0400:
php 5.2.10
upgrade
Kai
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
As John says: from where did you get it? Or is this from CentOS-testing? (I didn't follow testing or extras for versions.) I recommend ius for those packages that replace base packages.
Kai
Hi,
Yes Centos-Testing.
I've been using for a while (1 year) with no problems.
The last ius package that I've used (5.2.15?) kept aborting without any good reason.
On Sat, Mar 12, 2011 at 8:31 AM, Kai Schaetzl maillists@conactive.comwrote:
As John says: from where did you get it? Or is this from CentOS-testing? (I didn't follow testing or extras for versions.) I recommend ius for those packages that replace base packages.
Kai
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
The ius packages are fine, you shouldn't use an unpatched old PHP version.
Kai
I'll have a look at them again.
But even tough I think it is good to have updated php version this one has been running for more than a year and these problems only started a few weeks ago.
On Mon, Mar 14, 2011 at 12:31 PM, Kai Schaetzl maillists@conactive.comwrote:
The ius packages are fine, you shouldn't use an unpatched old PHP version.
Kai
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos