Support » Networking WordPress » Multi site installation on a shared server with main and add on domains.

Viewing 15 replies - 1 through 15 (of 19 total)
  • I’m certainly no expert, but I’ve got this plugin to work in the past: http://wordpress.org/plugins/wordpress-mu-domain-mapping/

    I thought it only worked with subdomain WordPress Networks (Multisite), but I’ve read Support threads that seem to indicate it will work with a subdirectory Network, too, though WordPress does have to be installed in the root.

    Thank you. Wp is installed in the root. A domain mapping plugin or redirection solution is not the ideal solution in my view.

    Did you read the article I linked to on my BB? Especially you should note this:

    That structure maindoman.com/addondomain.com was not accepted when I added sites in the Network sites panel. Only the structure maindoman.com/addondomain/ was accepted, so I used that structure. The structure maindoman.com/addondomain.com is the default structure for add on domains at my hoster. My hoster had to change the structure for add on domains from maindoman.com/addondomain.com to maindoman.com/addondomain/

    I used the structure maindoman.com/addondomain.com when I installed drupal multisite.

    I did not need a redirect when I installed drupal multisite, but I needed a file newsymlink.php that I needed to upload to the server. Redirects and a domain name mapping plugin may be a recipe for later trouble. I think the sym link solution is better so I will wait for additional input before I try the domain name mapping plugin or redirects.

    You write: I’m certainly no expert.

    Hopefully an expert will answer before I try domain name mapping or redirects.

    No other answer. Visit http://www.expert-links.net/ and you get the following error:

    Forbidden

    You don’t have permission to access / on this server.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

    This is a WP configuration issue. The 500 error is caused by a redirect loop (over 10 redirects) which will most likely relate to WP .htaccess rewrites.

    The ideal solution is IMO to use the file newsymlink.php with the following structure:

    <?php
    symlink(".", "articlenorway.com");
    symlink(".", "cybertoolbar.com");
    symlink(".", "expert-links.net");
    //create as many symbolic links as you need here for all of your domains
    print "Done";
    ?>

    That functions fine for drupal multisite installation with the following add on domain strucuture under the main domain .blognorway.com

    blognorway.com/articlenorway.com
    blognorway.com/cybertoolbar.com
    blognorway.com/expert-links.net

    That is in my view future compatible.

    Make it simple, as simple as possible but no simpler.

    So do I need to install 4 versions of Wp?

    My hoster say that it is a Wp configuration problem, and I think it is since I have had no problem with drupal multisite installation.

    Is this

    And if THAT is the case, then the steps are relatively simple.

    1) Make a site on the network: http://pickwickpuppetclub.com/winedinerochester

    2) Park the domain winedinerochester.com on top of pickwickpuppetclub.com

    3) Install domain mapping and map winedinerochester.com to the site winedinerochester on your network

    Source:
    http://wordpress.org/support/topic/multi-site-installation-and-setup-issue-with-first-multi-site?replies=21#post-5151035

    the soulution?

    Then the plugin:

    http://wordpress.org/plugins/wordpress-mu-domain-mapping/

    mentioned by jonradio in the second post is needed.

    You may need to read the readme text document that is downloaded with the plugin.

    In addition this

    WordPress 3.0: Multisite Domain Mapping Tutorial

    tutorial is referred in that document.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    You have two options.

    1) Use Multisite and map the subfolders using http://wordpress.org/plugins/wordpress-mu-domain-mapping/

    2) Make four separate WP installs.

    Pick one.

    Yes.

    I have installed that plugin, but the tutorial http://ottopress.com/2010/wordpress-3-0-multisite-domain-mapping-tutorial/ is not up to date.

    Very much seems to have changed.

    As explained there I go to

    tools + domain mapping, I get the following error when I try to add the main domain – cybertoolbar.com as the primary domain and then visit that site.

    Forbidden

    You don’t have permission to access / on this server.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request

    In addition

    The other way to set domain mapping is through the Super Admin->Domains menu. Here you’ll find a list of sites and their ID numbers

    There is no id listed for any domain.

    The problem is described in detail here:

    http://www.oopschool.com/phpBB3/viewtopic.php?f=18&t=321

    1. I think WordPress should allow the following structure when you add a domain in the networks sites panel:

    maindomain.com/addondomain.com

    2. Solve the configuration like drupal have done it with the above mentioned file

    newsymlink.php

    <?php
    symlink(“.”, “articlenorway.com”);
    symlink(“.”, “cybertoolbar.com”);
    symlink(“.”, “expert-links.net”);
    //create as many symbolic links as you need here for all of your domains
    print “Done”;
    ?>

    3. That is clean, no plugin needed and forward compatible. In addition I think it will function fine for add on domains as least as they are configured by my hosting company.

    You have two options.

    1) Use Multisite and map the subfolders using http://wordpress.org/plugins/wordpress-mu-domain-mapping/

    2) Make four separate WP installs.

    Pick one.

    I finally made four separate WP installs until there is a seamless multi site installation on a shared server with add on domains configured as:

    maindomain.com/addondomain.com

    So the

    DRY=Don’t Repeat Yourself

    principle is broken.

    IMO, you did not install WP multisite properly and/or configure the WP Domain Mapping plugin. I couldnt figure out what you didnt do or what you did incorrectly.

    We have over 200 sites on our WP multisite system, nearly all are a subdomain, but we have no problems adding completely separate domains too.

    Separate WP sites will work fine. IMO, the main reason why I love multisite is that I only have to manage one WP system. Can you imagine upgrading 200 sites?!

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    Otto’s directions aren’t THAT much out of date. The plugin is still very easy to use.

    tools + domain mapping, I get the following error when I try to add the main domain – cybertoolbar.com as the primary domain and then visit that site.

    Forbidden

    You don’t have permission to access / on this server.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request

    This isn’t a WordPress error. You set up the mapped domains wrong.

    Completely independatly from WordPress, when you map a domain, you have to either park it (which is mirroring) or add-on the domain. Which one? Well that depends on your host, but you can ask them this:

    “I want to have domainB.com mirror the same content as domainA.com. How do I do that?”

    In cPanel, it’s as simple as parking a domain.

    @jkhongusc

    We have over 200 sites on our WP multisite system, nearly all are a subdomain, but we have no problems adding completely separate domains too

    I know of the subdomain option. I did not (want to) use that option. I used the folder option and as I have said above.

    Wp only accepts this structure

    maindomain.com/addondomain/

    while my hoster requires

    maindomain.com/addondomain.com/

    for add on domains.

    My hoster say that it is an Wp configuration error.

    @ipstenu (Mika Epstein)

    “I want to have domainB.com mirror the same content as domainA.com. How do I do that?”

    In cPanel, it’s as simple as parking a domain.

    Yes, I know it is simple to park a domain in cPanel.

    But the add on domain has to be configured as explained above to function. I have done 100 of configuration problems in my life C++Builder, Microsoft Macro Assembler, Simula for OS II Presentation Manager ( problem I solved for Simula). This is the first time I can remember that I had to give up.

    And why use a plugin for everything? I have used Wp long enough to experience problems with no forward compatible themes and plugins.

    Multisite configuration should be a part of the core system and require no plugin.

    I am able to update 4 Wp accounts. When it functions that is fast. I have experienced a white page with earlier Wp upgrades. It is much better now with the latest versions. And if it don’t functions it can be easy to solve – by changing the name of the plugins / themes folder and change it back to the correct name after a successful upgrade.

    For the rest of the add on domains I may use drupal:
    1. Fast installation and upgrade with drush. Nearly as fast as moving folders on your computer.
    2. Drupal multisite is very simple and efficient with the use of symlinks.

    I could have studied your proposal in more detail. Now a decision is taken, and I stay with the online upgrade of 4 accounts as long as it function. I take regularly backup of the 4 database and have no problem installing a new version as long as the databases are intact.

    I agree with my hoster that this would not have been a problem if Wp allowed the structure:

    maindomain.com/addondomain.com/

    when a site is added by the superadmin in the sites panel of the network dashboard.

    Hopefully that will be allowed in the future. But then I have 4 databases and there is a new problem if these need to be merged to one network database for a multi site installation to function.

    Also here drupal is more seamless with the following options.

    multisite: one database for each site.

    domain access: the sites shares the data in one database.

    I know of the subdomain option. I did not (want to) use that option. I used the folder option and as I have said above.

    Wp only accepts this structure

    maindomain.com/addondomain/

    while my hoster requires

    maindomain.com/addondomain.com/

    for add on domains.

    My hoster say that it is an Wp configuration error.

    FYI, we also have a WP sub-directory multisite with 2 different domains. My point is that there is (possibly) something that either you or your host is doing wrong in setting up your system. My guess is probably the way you setup the domains in DNS. It is possible that your host may not be able to work with WP multisite but I am not sure of that yet =)

    May be.

    I set the DNS at my registrar to point to my hoster’s server. That functions correctly. I am not allowed to configure the DNS on the web server.

    I am very satisfied with my hoster. I have tried many. They are very experienced and professional.

    They claim that it is a Wp configuration problem. I don’t know who is correct. I don’t use more time on this before Wp find a solution as simple as that of drupal:

    https://groups.drupal.org/node/54608#comment-153368

    https://groups.drupal.org/node/54608#comment-153468

    So just to recap:

    install drupal somewhere in your main domain.
    create your settings.php files in the sites folder
    create an empty database for each additional domain you wish to install drupal on
    delete those pesky standard domain folders created by your host
    create and run your symlink file
    go to each of your domains in your browser as you would normally and hopefully you should get the drupal installation page
    install as usual using the database you have created

    It really is that simple. The necessary link is the symbolic link, without that you are stuffed! So as long as the system knows where point A is (your file path to your current drupal install) and B (where you want to install drupal again) you should be ok. The fact that you have drupal in a folder within public_html is not a problem so long as it is specified correctly.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Multi site installation on a shared server with main and add on domains.’ is closed to new replies.