Contents
Go to on your web browser. A page saying your Apache server is running properly should show up. This command will show whether Apache is running or has stopped.
How do I check if a webserver is running on Linux?
If your webserver runs on standard port see “netstat -tulpen |grep 80”. It should tell you which service is running. Now you can check the configs, you’ll find them normally in /etc/servicename, for example: apache configs are likely to find in /etc/apache2/. There you’ll get hints where the files are located.
Which port is Apache running on Linux?
1 Answer
- lsof -i will list open ports and the corresponding applications. lsof | grep apache for 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 .
19 июл. 2017 г.