there I just downloaded the "Multi-Domains Plugin"

Hi there
I just downloaded the "Multi-Domains Plugin" from your website and installed it on a completely fresh and untouched wordpress 3.5.2 installation. No other plugins are activated, no themes nothing..

The Problem is, it doesn't work

I started with your step-by-step install guide (https://premium.wpmudev.org/project/multi-domains/#usage). When I came to Point 5 i was a little confused because in the original wp-config.php there is no MULTISITE section - no define-Functions or something like this. So do I have to add only the function "sunrise" (as written in the manual) or do I have to add all the define-function lines?

system information:
Server: Linux Ubuntu
Xampp for Linux: XAMPP Linux x86_64 1.8.2
Wordpress 3.5.2

Thanks for a quick reply and best regards from Switzerland
thomas

  • Jack Kitterhing

    Hi there Thomas,

    I hope you are well today and sorry to hear of the problems your having.

    Multi-domains won't work on a normal single installation, it requires WordPress mulitsite, there is a great guide on multisite and setting it up here https://premium.wpmudev.org/blog/wordpress-multisite-guide/

    Can you try setting that up please? And then it should work

    Thank you!

    Kind Regards
    Jack.

  • Thomas

    Hi Jack

    Thanks for your quick reply! Actually, I already activated MULTISITE. However, I do it all again, very properly step-by-step

    One important question: I want to use domain-mapping because i need:
    http://www.link.ch
    http://www.internet-panel.com

    (two or even more different domains in one WP installation)

    I read in other articles, that in this case I HAVE TO set subdomains and not folders. Is this true? Do I have to set SUBFOLDERS with your plugin?

    Thanks
    Thomas

  • Jack Kitterhing

    Hi there Thomas,

    Thanks for the additional information, that is indeed correct that you need subdomains and not sub folders/directories,

    This would mean setting up a wildcard subdomain within your DNS settings for your hosting provider, which would be *.yourdomain.com

    Where yourdomain.com is the main domain for the multisite.

    With what you'd like to do, Multi-Domains is for allowing users to set up sub domains on your multisite with other domains, so for example you might have yourdomain.com which users can set up a sub domain such as sub.yourdomain.com, but then with Multi-domains you could also add other domains for the user to get a sub domain on, such as yourdomain1.com, then a user could have a sub domain at sub.yourdomain1.com and sub.yourdomain.com

    Whereas as domain mapping which is another plugin here https://premium.wpmudev.org/project/domain-mapping/

    Allows you to map a sub domain on a multisite of say subdomain.maindomain.com to myothermaindomain.com

    Was that what you wanted to achieve?

    Thank you!

    Kind Regards
    Jack.

  • Thomas

    Hi Jack

    yes, that's what I want:
    I have several domains, for example:

    - http://www.my1domain.ch
    - http://www.my2domain.com
    - http://www.my3domain.net

    therefore i need one wp installation.

    i know about the domain-mapping plugin, but actually i thought i need the multi-domain plugin and "on top of that" i will have to add the domain-mapping plugin (additionally).
    isn't it like that? so I only need the mapping-plugin?

    well, i want you to update about my last trials
    ...forget about Linux, i'm now back again on my localhost on windows xampp (it's easier to test).
    fresh wp 3.5.2
    multi site function activated, network options in wp-backend fine.

    the problem now is the wildcard dns entry on my localhost. my host-files looks like this (C:\Windows\System32\drivers\etc\hosts):

    127.0.0.1 wplink.ch
    127.0.0.1 *.wplink.ch

    then I guess i have to set the virtual hosts in -> C:\xampp\apache\conf\extra\httpd-vhosts.conf
    but I didn't get it to work so fare. i always get the error in wp-backend when heading to networksettings, "set subdomains" ->

    --------------------------------------------------------------------
    Warning! Wildcard DNS may not be configured correctly!

    The installer attempted to contact a random hostname (a4204d.wplink.ch) on your domain. This resulted in an error message: Could not resolve host: a4204d.wplink.ch; Host not found

    To use a subdomain configuration, you must have a wildcard entry in your DNS. This usually means adding a * hostname record pointing at your web server in your DNS configuration tool.

    You can still use your site but any subdomain you create may not be accessible. If you know your DNS is correct, ignore this message.
    --------------------------------------------------------------------

    what do I have to do? how can I add the wildcards in my localhost?
    i'm really not an expert in this and couldn't find any matching solutions in the net.

    thanks and kind regards
    thomas

  • Jack Kitterhing

    Hi there Thomas,

    I hope you are well today and sorry for the extreme delay with my reply, I have taken a look around and can't find a sure fire way to make sure the wildcard works, if you add the sub domain, are the websites accessible?

    As that could be a HTTP response issue, with this

    - http://www.my1domain.ch
    - http://www.my2domain.com
    - http://www.my3domain.net

    Do you want users to be able to create websites themselves on each of those domains?

    Thank you!

    Kind Regards
    Jack.