Click here to Skip to main content
15,891,946 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

I am a beginner with the PHP.
As part of setting up my system, I have downloaded and installed EasyPHP-5.3.5.0. The installation was fine and both the Apache and MySql are started after the installation.
But when I go to http://localhost/home, it shows problem loading the page.

Later when I try with http://127.0.0.1:8888/home, I am able to get the home page. I would like to know what exactly is the problem in my machine.
Can someone help me on this.

Thanks
Mithun
Posted
Updated 12-Feb-11 16:42pm
v2

HI

Your Apache runs on the port 8888, not on 80. This will happen if any other web server like IIS already occupy the port 80. If you give importance to php. Then change the port of IIS to any other port and modify the httpd.conf of you apache installation as below. Find and change these lines as shown. Restart the pc.

Listen 80
ServerName localhost:80
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 12-Feb-11 23:26pm    
No need to restart PC, only IIS.
--SA
This is how you installed the HTTP. There is nothing wrong with it; you only need to know how to use local host addressing.

It it works with http://127.0.0.1:8888/home, the equivalent address is not http://localhost/home, you should use http://localhost:8888/home instead.
Even a beginner should understand 8888 is the port number (missing port specification in URL means the default, which is 80 for HTTP), otherwise this beginner begins with wrong steps.

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900