How to check where Apache is running or listening on Localhost

I just installed Apache on my Ubuntu , But when I write localhost: it redirect me to a page.

Welcome to nginx!

If you see this page, the nginx web server is successfully installed. and working. Further configuration is required.

So, I think on default nginx is installed. So where I can find my Apache ? And I tried localhost:8080 which redirect me to

It works !

If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!

Thanks!

2

1 Answer

"It works !" is the default page you see when Apache is installed. Not sure if other webservers use the same method though(?)

So where I can find my apache ? And I tried localhost:8080

That would be localhost:8080.

In case you want to be perfectly sure...

  • lsof -i will list open ports and the corresponding applications. lsof | grep apache for apache. Similar: sudo netstat -anp | grep apache.
  • See /etc/hosts for IP addresses connected to names.
  • See /etc/apache2/sites-enabled/ for settings about the sites that are active for Apache.
  • See /etc/apache2/ports.conf for the Listen. It will have a port-number behind it. That parameter can also be in /etc/apache2/sites-enabled/

If /etc/apache2/ does not exist you did not install Apache. Nginx uses /etc/nginx/sites-available and the same style paramaters.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like