my PHP 5 o Apache 2.2.8 hangs !

It is impossible to tell you without viewing your scripts. What do they do?
 
Did you watch top output? What is your server load? What causes most memory usage?
 
>>vovaNux
>>Did you watch top output?
Yes, nothing to worry about - nothing high
>>What is your server load?
minimal. really barely 3.4%
>>What causes most memory usage?
Do you think can be that ? hm, good question - I can try to increase php allocated memory up to 128Mb, lets see.
Oh, unfortunately - there's Zend Optimizer so I cannot see the actual code.
 
Try temporarily limiting the input time to see if this mitigates the hanging. php.ini's max_input_time setting is the one to tweak.

May want to ensure that this isn't being caused by a vulnerability in a hanging script as well, suggest disabling these functions:

register_shutdown_function,register_tick_function,exec,system,proc_get_status,passthru,proc_open,proc_nice,shell_exec

(use the disable_functions directive in php.ini)

Good luck!
Alex
 
Do you have mod_suphp enabled? It is a usual practice that php scripts are run under apache
 
If you don't have it, your php scripts are running under Apache and there's nothing you have to worry about
 
You might need suphp if you want to run your PHP scripts with the permissions of their owners. If you don't need, just don't worry, your scripts will be tun under user Apache and there's nothing wrong with it.
 
Thanks vovaNux. I try to keep my installation clean - everytime I change something - it affects whole system. ABout that suphp - Ok, it is something that do something, but actually not needed, unless I want somehting to run somehow, which is probably useless for mainstream. Right ?
 
Last edited:
Back
Top