In windows operating system there are IIS web service for ASP application
and Apache for PHP. Default port for both service is 80. You can run both IIS and Apache at the same time as long as they both don’t listen on the same ports. So we need to change one of port settings.

Here’s how to change the port setting on the Apache from the XAMPP:

  1. Open httpd.conf at ..\xampp\apache\conf\
  2. Change ‘Listen 80′ to e.g ‘Listen 8080′
  3. And ‘Servername localhost:80′ to e.g ‘Servername localhost:8080′ then save
  4. Open httpd-ssl.conf at ..\xampp\apache\conf\extra\
  5. Change ‘Listen 443′ to e.g ‘Listen 4499′
  6. And ‘<VirtualHost_default_:443>’ to e.g ‘<VirtualHost_default_:4499>’
  7. And ‘ServerName localhost:443′ to e.g ‘ServerName localhost:4499′

Then run the XAMPP Control Panel on the C: \ xampp \ xampp-control.exe
Click Start on Apache then in the box details below appears warning “Apache started [Port 80]“. Then open the browser and when the address http://localhost:8080/xampp. If successful, the Apache Web Service has been running on port 8080.

But something happen here, my basic application using PHP are worked but CodeIgniter and Wordpress are not working #:-s.
Even I made changed on my base url like this $config['base_url']= “http://localhost:8080/bcode/” :-? anyone help me?.

So finally I reconfiguration my settings. I changed back to ‘Listen 80′ from ‘Listen 8080′ at ..\xampp\apache\conf\. Then made a new port for my IIS like this Open Control Panel-> Administrative Tools-> Internet Information Service-> Click Default Web Site and change to 8080, and it’s works.


See also how to install phpmyadmin on IIS.