Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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 10.1.1.1 | grep \:80
tcp        0      0 127.0.0.1:80            10.1.1.1:48125         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

 
discard

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.