0
votes
2answers
28 views

Find PHP process that logs to file [duplicate]

I have started a PHP script via browser and due to a loop error the script continues to be executed even after closing the browser. I am noticing it since the script is logging error messages to my ...
1
vote
1answer
145 views

What could cause a PHP script run as a cron job to end up in D state?

My server is running Ubuntu 12.04 LTS (precise) and I'm having a weird issue. The server is hosting a large website which is used for data collection. The website is in PHP and uses Zend Framework. ...
0
votes
0answers
83 views

Manage a PHP background process

When you have a PHP background process running, what are recommended approaches to: 1/ Monitor that the process is alive and/or automatically launch a new one if it dies 2/ Make sure that there are ...
1
vote
2answers
574 views

Apache's “OPTIONS * HTTP/1.0” running 100% CPU - Runaway httpd process

I have this recurring issue where an httpd processes will randomly start running at 100% CPU. Often other httpd processes will join in, and it will continue until I restart Apache. Oddly, the thing ...
0
votes
2answers
396 views

Does PHP script itself count as a process?

My server has a limited number of concurrent processes (20) it can handle. To make sure I don't exceed I need to understand: When a user is waiting for a PHP script to finish loading, does the ...
2
votes
2answers
571 views

Kill PHP process when connection is closed

I've posted the following question to SO, but thought there might be a server based solution. http://stackoverflow.com/questions/9053964/php-script-with-sleep-does-not-exit-on-connection-close I'm ...
2
votes
3answers
2k views

How to kill these PHP process safely?

I have installed php5 in ubuntu and WordPress. It can run after installed. But after few days I've found there are lots of process and occupied a lot of memories. I try to use ps -aux | grep www-data ...
0
votes
1answer
528 views

Supervisor - how to get a program to run at intervals of time

Perhaps I'm misunderstanding with Supervisor does, but perhaps me asking this question will help clear that up. Basically, I have a Supervisor program in my /etc/supervisord.conf file that executes a ...
0
votes
1answer
345 views

Proxy+PHP: filter and process specific proxied requests and responses with PHP scripts

I need to configure a proxy on a machine A in a network X. Then I need to connect a client (smartphone) on this same network X but having the proxy configuration as the one prepared on the machine A. ...
2
votes
1answer
3k views

PHP+Apache as forward/reverse proxy: ¿how to process client requests and server responses in PHP?

I'm having a lot of troubles with the proper configuration of Apache mod_proxy.so to work as desired... The main idea, is to create a proxy on a local machine in a network which will have the ability ...
1
vote
1answer
2k views

Windows Server load climbs to 100% — possibly due to php?

For our setup here, we have 2 load-balanced Windows 2003 Servers with PHP using FastCGI & IIS6 that host a multitude of websites -- probably 30 websites or so. The largest website gets about 5000 ...
1
vote
1answer
272 views

how to limit the number of simultaneous processes?

I have an ubuntu server and I am using it for cpu heavy verifications. I want to limit the number of simultaneous verifications to 10. Is there an easy way to limit the process called "vis" to being ...
1
vote
4answers
265 views

Monitoring process and restart after ending

I have a Debian box, on the machine I have a php script running. How I can monitor it, and when the php script dies, restart it automatically ?
1
vote
1answer
805 views

Apache: Waiting for Child Process - WTF?

I run a PHP script, something goes wrong (I haven't figured out what yet). Just to have a fresh start. I restart apache, but in the logs I get this: [Fri Dec 25 21:27:16 2009] [notice] Child 7584: ...