10 July 2010

Changing XAMPP Apache port number

By default, Apache listens to port 80. However, if another “SERVICE” is using “PORT 80”. You will need to change the Default Port.

In order to do this,
  1. Search for file "httpd.conf" inside “CONF” folder under wherever “APACHE” folder is installed.
  2. Open "httpd.conf" using NOTEPAD
  3. Use "Find" to find "Listen 80".
  4. Change this port number to the port that you'll be using on your web server. For this example, we'll use "8888".
  5. Use "find" once again to look for "ServerName"
  6. Change “ServerName” from “PORT 80” to “8888”
  7. As we have changed the port number to 8888. “LOCALHOSTS” address will be http://localhost:8888 or http://127.0.0.1:8888
Hope this has been helpful?

Please leave a Comment below!

Follow me on Twitter

Technorati Tags: ,