• Hi,

    OK, this is what I have so far. I currently have a live internal server running a wordpress site. The client now wants to host more sites on the same box – no problem. However he wants to make use of the Multisite facility in WordPress – no problem?

    I want to setup a dev server to test the above. However I cannot work out the order of installing sites.
    Firstly I’d like to create a copy of the live site on the dev box.
    I would then like to enable multisite support.
    The way the current site is setup is in a folder named bcp to reflect the purpose of the site under htdocs. So htdocs > bcp.

    From the documentation it would appear that any sites in a MU setup should not be in it’s own folder but in the root?

    I would like to know the steps required to install wordpress, enable MU and setup new sites. I dont understand what is meant by the “main site”? I’m seriously missing something here!

    Do I just create a top level site that does nothing and have all the sites underneath this one or does the “main site” actualyl have to do something????

    Thanks,

Viewing 3 replies - 1 through 3 (of 3 total)
  • Check out the Codex ‘Create a Network’ to try and understand more what is going on.

    I think it’s advisable to setup the Network using a new install of WP, and then copy your theme/tables across.

    The main site is the site that is hosted at the main URL – http://www.example.com – where as the subsite in the Network would have either – http://www.example.com/subsite1, http://www.example.com/subsite2, etc… OR subsite1.example.com, subsite2.example.com, etc… – You have to choose which of those set ups you want as part of the install.

    Thread Starter muffintop

    (@muffintop)

    Thanks for the response although I have tried to understand the create a network guide but still do not follow.

    I would basically like each site to be in it’s own directory under the root (www or htdocs). i.e. nothing in the root.
    The server does not have a main URL as it’s a dev box and is only known as localhost.

    When you say setup the network using a new install WP… what do you mean. Copy the wordpress folder and files under the root? If so do I just leave it as is or do I have to configure it to be used? I have an existing site called bcp… where should that go?

    I’m thinking it would be easier to just leave wordpres as is and create multiple sites in a hierarchical structure as with most web servers.

    Ok, it seems we have crossed wires – what you need to do then is add Virtual Hosts to your server. I have several on my local FTP server (website, intranet, payments, etc) that each have a folder in the WWW folder.

    To do that you need to add the following to the bottom of your httpd.conf file for each of the sites you wish to add, replacing the text in the curly brackets (and of course removing the brackets) with your desired values –

    NameVirtualHost {IP address}
    <VirtualHost {IP address}>
        DocumentRoot "c:/WAMP/www/{folder_name}/"
        ServerName {desired URL}
        LogLevel debug
        ErrorLog "c:/WAMP/www/{folder_name}/logs/error.log"
        CustomLog "c:/WAMP/www/blog/{folder_name}/access.log" common
    </VirtualHost>

    You’ll also need to add an Alis your DNS for each of the sites you add. For example, if the above code had an IP of ‘192.168.1.190’ and a ‘ServerName’ of ‘dev.yourdomain.com’, you would need to add an Alias of ‘dev’ with the IP ‘192.168.1.190’.

    Probably lots of reading for you to do, but I hope I’ve got you started in the right direction.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Multisite’ is closed to new replies.