Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a script with a long execution time. Apache is using php_mod.

I start the process in the browser ( open the url ). I close the browser and the process is still running.

How can I find the apache process and stop it (linux os )

share|improve this question
up vote 1 down vote accepted

How can I find the apache process and stop it (linux os )

If you know you ip, find apache process PID:

netstat -anp | grep | grep \:80
tcp        0      0           ESTABLISHED 7191/apache2

And kill it:

kill 7191
share|improve this answer
Are you sure? It's not working... – user56379 Oct 7 '10 at 9:10
It works.Perfect. – user56379 Oct 7 '10 at 9:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.