• Hi.

    I am using WP on XAMPP (win7). The issues I came across are quite known and I could have chosen to solve (as I did to install WP) some of them and be able to carry on to a certain point. I decided though, to open this thread so I could be able to understand more the mechanism.

    Everything volves around the Apache port 80 affair. I changed it (in 8080) in httpd.conf but found out WP doen’t allow installation of a network on a different port than 80 and so chose to change it back as I had to tipe :8080 every time on the the browser.

    I read then different approaches to this matter.
    – Some would say to add a few lines on wp-admin\network.php (adding the desired port) and few other settings but that everything would have got undone once WP would update itself.
    – Some else would say to list “fake” domains in the host file (I was reading this).

    I din’t understand, however, how that would have anything to do with ports, how fake domaind are useful and what multisite mean exactly.

    I read (here) that in order for XAMPP (Apache) to work properly I need to deactivate possible services using port 80 and to that I have to type net stop http into the cmd.

    [img]https://i.imgur.com/fFa9RlU.png?1[/img]

    Is it any other way around it, or do I need to deactivate any other service involved port 80 use every time I use XAMPP?

    I guess I might have mixed a couple of things up. Hope you’ll help me getting my head arond this.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you are doing website development work, the computer has to let you use port 80. If it does not, then the computer is not suitable.

    Also for the moment forget about multisite, it is complex, try and walk before you run.

    Myself, I always use the “virtualhost” technique, add a block like this to your apache config file:

    <VirtualHost *:80>
    DocumentRoot /home/ross/web/cw/public_html
    ServerName example.com
    ServerAlias www.example.com
    </VirtualHost>

    And then add to my hosts file:

    127.0.0.1 example.com
    127.0.0.1 www.example.com

    Details on hosts file here:
    https://en.wikipedia.org/wiki/Hosts_%28file%29

    Using this technique I can develop my sites with EXACTLY the web name it will live at, nothing to change on the website when I upload it, all I have to do is comment out those lines in the hosts file.

    Thread Starter hirdvrayewl

    (@hirdvrayewl)

    I just followed one of the many guides about how to install and configure WP. It says how to set up the network site as well and that is why I was doing so.

    Problem was I had performed WP installation under port 8080 which, I suspect, triggered something the like of that port being set up somewhere on XAMPP or WP db. I uninstalled and reinstalled again XAMPP. That was, I believe, the fastest way to solve that issue. In regard to the exclusive use of port 80 I had (and need every time I use it) to stop win7’s World Wide Web Publishing Service (IIS).
    At least now I can access WP and have even been able to set up the network site installation.

    As for “virtualhost” I know where the host file is but you lost me on how and in what instance/purpose to use the added domains in the host file.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Port 80 & WP network installation’ is closed to new replies.