Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

http://localhost/ not working with EasyPHP

I've verified my host file in windows/system32/drivers/etc/ has an entry for localhost in it, but it's not going anywhere. I have to have a port number in the URL: http://127.0.0.1:8888/

Is there anything I can do to get localhost working without the need for a port number?

like image 821
Webnet Avatar asked Mar 04 '11 14:03

Webnet


5 Answers

Your EasyPHP is probably configured to listen on port 8888.

You must configure EasyPHP to listen on port 80 as well.

For your information, the default port for HTTP is the port 80, so when you don't give any port information in the url, your browser is trying to connect on port 80.

You can follow this tutorial : http://technology.ohmygoh.com/easyphp-how-to-change-apache-server-port/

like image 54
krtek Avatar answered Oct 14 '22 17:10

krtek


For windows 8 users, you should also make sure that you are running it as administrator.

Right click on easyPHP shortcut and change the compatibility setting to always run as administrator.

After this, make sure the "httpd.conf" file in "C:\Program Files (x86)\EasyPHP-12.1\conf_files"

Has this line in it:

Listen 127.0.0.1:80

To verify that you had my problem, check 127.0.0.1:8887/

like image 21
Nico Avatar answered Oct 14 '22 18:10

Nico


Try editing conf_files/httpd.conf.

Change values listed as 8888 to 80, and you should not need to use a port on restart.

like image 38
Brandon Frohbieter Avatar answered Oct 14 '22 18:10

Brandon Frohbieter


Find in httpd.conf below... Options FollowSymLinks Indexes AllowOverride None Order deny,allow Allow from 127.0.0.1

And add line like this: Allow from ::1

Result: Options FollowSymLinks Indexes AllowOverride None Order deny,allow Allow from 127.0.0.1 Allow from ::1

And restart apache..:)

like image 43
YoungjooKim Avatar answered Oct 14 '22 18:10

YoungjooKim


Following these steps may solve your problem:

  • from EasyPHP icon right click -> properties
  • select "Compatibility" tab
  • check "Run this program in compatibility mode for:" and select Windows 7
like image 32
Rami Avatar answered Oct 14 '22 16:10

Rami