Team I have got the domain mapping plugin and i am trying

Hi Team

I have got the domain mapping plugin and i am trying to connect all my multi-sites from the network admin... So that will be like the core and all the other sites will point to that...

Please help

Kind Regards

  • Sean Grant
    • Design Lord, Child of Thor

    Thanks Vaughan

    I have implemented the Domain Mapping as per https://premium.wpmudev.org/blog/how-to-map-domains-with-the-wpmu-dev-domain-mapping-plugin/

    My goal is for http://www.ecollege.co.za to display the WP Site that I have setup at http://homeschool-china.com/grantclan/ and to hide all references to the multisite's path.

    Once again, I am getting errors, but now my entire network has crashed @ http://homeschool-china.com/wp-admin/network/

    Error;

    Server error
    The website encountered an error while retrieving http://homeschool-china.com/wp-admin/network/. It may be down for maintenance or configured incorrectly.
    Here are some suggestions:
    Reload this webpage later.
    HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

    I tried to comment out these lines, as suggested, but it didn't help;

    /** define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'homeschool-china.com');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1); **/

    I have tried CNAME's blog.ecollege.co.za and http://www.ecollege.co.za - addressed to homeschool-china.com but neither works.

    The domain [http://www.ecollege.co.za/ that I tried to map to the WP site, isn't displaying anything but it's own files.

    I tried a variation of http://blog.ecollege.co.za/ but this just displays an Apache default file at http://blog.ecollege.co.za/cgi-sys/defaultwebpage.cgi

    Strangley, http://www.intodns.com/ecollege.co.za reports that the CNAME update has already taken effect and that the www record is pointing to http://homeschool-china.com/grantclan/

    FYI: Both domains are on the same dedicated server, so I could not add the destination domain as a parked domain.

    Thanks in advance.

  • Vaughan
    • Support/SLS MockingJay

    hiya

    sorry for the delay.

    do you have a dedicated IP address for your domain? not sure if you said or not.

    i'm going to ping @aecnu for some of his expertise here as he is more experienced of Domain management & so on. hopefully shouldn't be too long.

    thanks.

  • Sean Grant
    • Design Lord, Child of Thor

    Thanks Fox_Jones

    Appreciate your input, but I have double-checked and both domains have the same IP address, namely 41.76.213.81.

    I have abandoned this MultiSite installation, due to lack of support from WPMU and the lack of functionality provided by the plugins supplied here, which do not work as they are supposed to, even when documentation has been followed properly.

    WPMU - please contact me about this blatant failure to provide me with support :slight_frown:(

  • Fox Jones
    • Design Lord, Child of Thor

    ouch. sorry to hear about the bad experience. i can relate, setting up functioning multisite is no small task, and i've had some extremely frustrating experiences with plugins and support staff.

    but it's all possible, there are just so any variables in the equation that the advertised solutions often require some tweaking to work with our homebrew hack-jobs. that's what community and these forums are for.

    with regards to your issue, you should be able to view the root site of your multisite install when visiting your IP in the browser. when i visit 41.76.213.81, i get an error page with some suggestions that are more likely to be preventing domain mapping from working. it appears to be something you need configure at a server or apache level. i'm not familiar with apache, but virtual hosts might have something to do with it. but right now, your default webpage for the IP is not set correctly.

    with a little persistence and a lot of patience, the rewards are worth the effort. hang in there, and good luck. good luck.

  • Sean Grant
    • Design Lord, Child of Thor

    What if there are other non-WordPress websites on the same dedicated webserver?

    I am trying to setup a MultiSite on a dedicated webserver with numerous other websites. Is this unwise?

    From your advice it seems that one should setup a new MultiSite network on a new virtual/dedicated webserver with a dedicated IP address. How have you setup your MultiSite Network?

  • Fox Jones
    • Design Lord, Child of Thor

    it's totally fine to have a multisite and standalone WordPress installations on the same server and IP. you will need to set up "Apache Virtual Hosts" correctly though.

    you need to have command-line access via SSH to your server to edit these settings.

    in the instructions for the other domain mapping plugin, which still apply here, it says:

    "Make sure the default Apache virtual host points at your WordPress MU site or WordPress 3.0 network so it will handle unknown domains correctly. On some hosts you may be required to get a dedicated IP address. A quick check: in a web broswer, type in the IP address of your install. If you are using CPanel, use the Park a Domain menu to set the mapped domain to your main installation."

    hopefully this points you in the right direction. i'd search for "apache virtual hosts for wordpress" or something to that effect.

    and since you asked, my setup is based on Nginx instead of Apache. Nginx is the proven choice for running large wordpress multisites very efficiently. i also found setting it up to be not too difficult with all the tutorials out there, especially ones geared toward exactly this purpose: wordpress multisite with domain mapping.

    if you want to go that route, we can start another discussion. but setting up the Virtual Hosts to make the wordpress multisite root site the same as the IPs root site is the key.

  • Vaughan
    • Support/SLS MockingJay

    hiya

    just further to the advice by @fox_jones

    when you say

    Appreciate your input, but I have double-checked and both domains have the same IP address, namely 41.76.213.81.

    both domains can have the same IP. however what fox means, is the root domain for your server needs to be the same domain used by your wordpress.

    this root domain is usually the domain you registered when you purchased the hosting.

    if your multisite domain isn't the root domain, but instead an addon domain, then domain mapping will have issues

    however with a dedicated IP assigned to your multisite domain, it may still work.

    hope that helps.

  • Fox Jones
    • Design Lord, Child of Thor

    The virtual hosts file will look something like this:

    <VirtualHost your-local-ip-address:80>
    ServerName yourdomain.tld
    ServerAlias *.yourdomain.tld somedomain.tld
    DocumentRoot /absolute/path/to/htdocs/
    </VirtualHost>

    DocumentRoot will be the path to your multisite install.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.