Search code examples
phpwordpressiisxampplocalhost

Set up WordPress in a pc running XAMPP and IIS


I'm trying to install WordPress on my laptop I've already installed XAMPP and have Apache and MySQL running, I downloaded WordPress and extracted it inside htdocs, my laptop already had IIS installed.

When I go to localhost/WordPress I get 404 -Not found, looking at detailed info of the error the Physical path is set to C:\inetpub\wwwroot\WordPress and the label of the chrome tab is "IIS 8.5 detailed Error".

This makes me think that my localhost is set to run with IIS and not with XAMPP.

How can I change my localhost to run with XAMPP htdocs instead of IIS wwwroot?


Solution

  • I think the best way is change listen port of XAMMP apache server or IIS... I don't have IIS but think the two servers listening port 80...

    In XAMMP stop all services and go to config for Apache module and chose httpd.conf.

    Then replace LISTEN 80 (around line 58) to other port you want (eg : LISTEN 8080),

    and ServerName localhost:8080(around line 225) with same listened port...

    Now to run WordPress on XAMMP you have to run url localhost:8080/WordPress, or replace `8080' to your chosen port...

    see this tuto or this answer for more information...

    Only careful to don't chose any reserved port to avoid conflicts, see List_of_TCP_and_UDP_port_numbers for more information...

    Or if you run windows, you can use WAMPSERVER who comes with best interface to control Apache virtualhost's.