- Open ~xampp/apache/conf/httpd.conf using any text editor
- look for line with "Listen"
- you should find 'Listen 80' or whichever default port value is set. in my case it's 80 which is in conflict with IIS in my PC.
- Change 80 to any number which is a port that is available. In my case I changed to 8079
- Look for line with 'ServerName localhost:"
- you should find 'ServerName localhost:80' or whichever default port value is set. In my case it's 80 which is in conflict with IIS in my PC.
- Change 80 to any number which is a port that is available. In my case I changed it to 8079
- Now when accessing html at localhost you need to specify the port
- http://localhost:8079/index.html
- where index.html is located at xampp/htdocs/index.html
Sunday, June 26, 2016
How To Change Listening Port of Apache Server in XAMPP
Labels:
Apache,
Web Development,
XAMPP
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment