mibacode
mibacode

Reputation: 404

EasyPHP Cannot Connect to Localhost

I have had EasyPHP running on my system, but had to do a clean OS reinstall. Just downloaded and installed EasyPHP again, and Apache is running. But when I try to access the administrative page (127.0.0.1/home) through my web browser I get a "Oops! Google Chrome could not connect to 127.0.0.1" error.

I checked Apache's httpd file and it says it is listening on 127.0.0.1:80, which is exactly how I am trying to access the admin page through the browser. For some reason howver I am able to access the www folder with 127.0.0.1:8887.

I'm not very knowledgeable on EasyPHP so any help would be appreciated.

Upvotes: 5

Views: 26577

Answers (5)

marvin gitau
marvin gitau

Reputation: 31

Go to the Dashboard and change the port from 80 to 8080 then reverse to 80

Upvotes: 2

Jay Wick
Jay Wick

Reputation: 13767

I had the same issue which was resolved by running the EasyPHP executable with admin privileges.

Update: I avoid installing EasyPHP into the Program Files folder and never had this issue again.

Upvotes: 14

I had the same trouble today and when i tried to fix this changing the port by the EasyPHP program, this didn't resolve. If this occur try go to folder of the program/apache/conf and manually change httpd.conf. Here the httpd of the program folder indicates 127.0.0.1:80 while httpd conf apache folder show 127.0.0.1:8887.

I hope had helped yours. Regards

Upvotes: -1

Warrex
Warrex

Reputation: 31

I was able to fix this problem by changing the listening port to 8887 like you did, but instead of saving it, do a 'Save As' and then overwrite it. It will ask you if you wish to overwrite the file, and just press 'yes'. This made the change permanent. Whenever I just saved it normally by pressing 'Save' instead of 'Save As', it would just create a new httpd file with the timestamp and not overwrite the original, which doesn't work.

Upvotes: 3

Balbuzar
Balbuzar

Reputation: 127

Did you check apache error logs ?

In your easyphp toolbar you can see if apache is running (green icon)

By the way, try this command "netstat -b" and try to find "apache.exe" ( or "httpd.exe" depending of your easyphp version) listening on port 80.

But first, check your apache error logs, maybe there is a failure on your apache configuration files.

Upvotes: 1

Related Questions