• John

    (@jbculpepper)


    I an new to word press and got here because I’m learning it and helping a few friends build their sites. So far things are working but I have not set up my local host in a way that I can work on more than one site at a time.

    Scenario: Multiple sites on localhost. Each site needs to be totally separate because they will end up on different hosts and for different domains.

    What I need to know is would setting up a multisite installation be the best way to do this? I’d like to get away from copying archived folders into htdocs when I want to work on a given project. Any broad strategic advice?

Viewing 5 replies - 16 through 20 (of 20 total)
  • Ok, for now, I think that I will do the single install. I am not sure I understand exactly what I need to do when I begin a new site, but I will look into it. If there is a link you can give me to help me understand that step by step, that would be awesome.

    When I read the instructions to set up the multisite, it seemed much more complicated than just moving files around to me. I may change my mind later as I grow.

    Thanks everyone for your help.

    Thread Starter John

    (@jbculpepper)

    Hi folks. I think I was over thinking this issue so for the benefit of dzinerchic, let me explain what I’ve done. If others would weigh-in on my method and comment on its validity that would help.
    First of all, many of my misconceptions and questions were based on a couple of old paradigms. I was thinking of having one wordpress install with some kind of “virtual mapping switch” that needed to take place. Fact is, a URL is a mapping so simply having several installs in their own directory with shortcuts in my browser does the trick. Having unique installs in no biggie. With that, here is my method.

    On my PC, Apache is looking for all website info at the following address:
    C:\xampp\htdocs This is essentially localhost

    A standard WordPress install would create the following path:
    C:\xampp\htdocs\wordpress

    I want several development sites to live there, each being totally separate from one another. Knowing that, I created three sub-folders under htdocs (Site1, Site2, Site3 for example).

    Paths then look like this:
    C:\xampp\htdocs\site1
    C:\xampp\htdocs\site2
    C:\xampp\htdocs\site3

    I then logged into MYSQL using the XAMPP admin control panel. Once in there, I created three separate databases, each with its one unique prefix for security reasons. Databases and prefixes named something like this:

    Site1_db prefix = sa
    Site2_db prefix = sb
    Site3_db prefix = sc

    {the examples here are only examples. In reality, if a site is for Joe’s Cars, I would name the database Joescars and the prefix would be jc_ } I gave unique prefix’s for security so that they are not the standard wp_

    Once the databases existed, the WordPress install has something to grab. So I unzip the wordpress downloaded install to each of the folders on my PC – Site1, Site2 and Site3.

    In my browser I go to the first one with the following path:
    C:\xampp\htdocs\Site1\wordpress\wp-admin\install.php

    {apache and mysql running locally using XAMPP}

    WordPress walks me thru the install and as Andrea_r says “bob’s yer uncle”

    Now in my browser I make shortcuts for the following:
    https://localhost/Site1/wordpress/wp-login.php
    https://localhost/Site2/wordpress/wp-login.php
    https://localhost/Site3/wordpress/wp-login.php

    Each mapped shortcut results in a login page. Since each install has it’s own database and the actual site names mirror what will go live when I FTP them up to the various hosts, there should be little cleanup.

    Does this methodology help you dzinerchic? Is it valid Andres_r and Ipstenu?

    Comments welcome

    Thread Starter John

    (@jbculpepper)

    I think all the information above checks out EXCEPT there may be on too many layers in the directory path names. I did not do Site1/wordpress/ but instead did site1/

    sorry

    I did a similar method, now I do it like this:

    WordPress Networking with Domain Mapping running locally on my MBP.

    where:
    demo.dev <– primary site
    demo.dev/jet <– site “added” under demo.dev
    cars.dev <– mapped domain name under demo.dev/cars to cars.dev

    you can view the screenshot of my developing sites:
    https://zanematthew.com/files/2011/03/demo.dev_.png

    If you look closely at my hosts file (not sure what that would be on windows running xammp), but you’ll see that I have several “domain names” linked to my local host.

    I learned that developing everything as a sub-folder under “localhost” or 127.0.0.1 was giving me issues.

    If what you have now is saving you time and money than thats the best to do it! ??

    Thread Starter John

    (@jbculpepper)

    Doughnut know…. just set it up today and am cleaning up the consequences of having done it in a totally lame way before. I’ll read your post and see if that idea will work in Windows. Thanks ps. moving this dev to mac soon.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Do I need Multisite setup?’ is closed to new replies.