content top
Installing IIS and apache in same server.

Installing IIS and apache in same server.

apache

Situation:  Not able to access http://localhost/ after installing WAMP.

Here is the story.

  • You Install WAMP server.
  • WAMP installation successful. You are happy.
  • Trying to access the localhost from the wamp menu.
  • You are redirected to a URL similar to this.

http://localhost/localstart.asp
Scratching your head and saying WTF :)

Reason: Some other application is listening to the default port 80.

You have already installed IIS or some other application which
listens to port 80. Port 80 is the default port Apache is listening. But already
IIS is bound to that port and only one server can bind to a port at a time.

Solution :

Solution #1: Simple, but not feasible for most of you. Uninstall IIS .

Solution #2: Change the Port in which Apache is listening.

  1. Go to bin directory in the installation folder.
  2. Search for a file with name “httpd.conf”
  3. Open the file.
  4. Search for “Listen 80″
  5. Replace it with “Listen 8080″
  6. Restart Apache
  7. Now type “http://localhost:8080/” in your browser.

Note : If you are using WAMP, you can directly access the httpd.conf file from WAMP menu. Refer the following picture.

apache-wamp


Blog Widget by LinkWithin

1 Comment »

  1. avatar
    Abdul Rahman Says:
    June 21st, 2009 at 12:06 pm
    comment-top

    great works fine

    comment-bottom

RSS feed for comments on this post. TrackBack URL

Leave a comment