Ubuntu – How to check on which port apache is running

apache-2.2Ubuntu

Is there any command to find out if apache is running or not.

and on which port except by seeingports.conf files

When i try netstat command then apaches does not appear in that.

but when i use apache2 restart command then it says restart ok

i don't know where it is running

Best Answer

lsof -i list open ports and the corresponding applications.

For a general check if an app is running you could just use ps aux | grep apache2