Apache server - not loading localhost

I had a problem with my Apache server not starting, because port 80 was used by some other program, I changed the β€œListen” port number to 8888, and the server started working. But now the problem is that when I try to access "http: // localhost /" from my browser, it does not find it. Can someone tell me what the problem is and the resolution for the same?

+4
source share
3 answers

Your browser uses port 80 if no port is specified.

Try http: // localhost: 8888

+9
source

When you enter "http: // localhost /" in your web browser, it automatically considers that you mean port 80 (the default HTTP port). If you changed the server port to 8888, you should mention this when entering the URL as follows: "http: // localhost: 8888" or, alternatively, "http://127.0.0.1:8888".

+4
source

If you want apache to listen on a port other than the default, you can do the following:

Edit ports.conf nano /etc/apache2/ports.conf Add a Listen directive Listen default port Listen 8888 Restart Apache /etc/init.d/apache2 restart 
+4
source

Source: https://habr.com/ru/post/1391872/


All Articles