Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache server - not loading localhost [closed]

I had this problem with my Apache server not starting, because port 80 was being used by some other program, I changed the 'Listen' port number to 8888 and the server got started. But now the problem is, when I try to access 'http://localhost/' from my browser its not finding it. Can anyone let me know whats the problem here, and resolution for the same ?

like image 910
user1158831 Avatar asked Dec 02 '22 23:12

user1158831


2 Answers

Your browser is defaulting to port 80 if no port is specified.

Try http://localhost:8888

like image 101
ken Avatar answered Dec 19 '22 15:12

ken


If you'd like to have apache 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
like image 34
tiks Avatar answered Dec 19 '22 15:12

tiks