The MU forums have moved to WordPress.org

Multi-Site Manager Issue (12 posts)

  1. garg456
    Member
    Posted 16 years ago #

    Hello,

    I have searched and read every thread but I am still in need of help because it's not working.

    My Goal:
    I want to import my blogs into WPMU. Then I want to park the domains and get each domain to point to a blog in WPMU.

    This is what I have:
    1) A domain with WPMU called DomainA.com
    2) A parked domain (with cpanel) called DomainB.com
    3) Multi-Site Manager installed

    Now if I go to DomainB.com, I get redirected to http://DomainA.com/wp-signup.php?new= . This shows that DomainB.com is parked properly.

    Now I'll go to DomainA.com/wp-admin > Site Admin > Blogs and I'll make a new blog. blog address=domainA.com/[DomainB/]; Blog title = [DomainB]; Email Address=[my@email.com]

    I test domainA.com/domainB and it works fine.

    Now I'll go to DomainA.com/wp-admin > Site Admin > Sites and I'll make a new site. site name=[DomainB]; Domain = [DomainB.com]; Path=[domainB/]

    I save it and go to DomainB.com now and it says:
    "No WPMU site defined on this host. If you are the owner of this site, please check Debugging WPMU for further assistance."

    I would want this to simply show the blog at domainA.com/domainB

    I have set up WPMU to do subdirectories instead of subdomains. I haven't set up any wildcards because I am using subdirectories. Please help :(

    Now if I go to DomainA.com/domainB I see a blank blog. My goal is to be able to go to DomainB.com and see that. So I then went to Site Admin > Sites > Sitename = domainB ; domain = domainB.com; path = /domainB/ (I even tried /home/user/public_html/domainB/) then when I go to domainB.com I get:

    No WPMU site defined on this host. If you are the owner of this site, please check Debugging WPMU for further assistance.
    Is it at this point that I need to tell my webhost to do something? Any assistance will be much much appreciated. Thank you!

  2. garg456
    Member
    Posted 16 years ago #

    --ignore this--

  3. jdixon
    Member
    Posted 16 years ago #

    Hi, I'm having what seems like the same problem you did garg456. I'm using subdirectories instead of subdomains, and any time I try to create a new site from the "Site Admin > Sites" menu I get:

    "No WPMU site defined on this host. If you are the owner of this site, please check Debugging WPMU for further assistance."

    My wordpress install is stuck at this message until I go into the database and delete the new site I created from wp_sites.

    Would you mind posting your solution if any? This problem is really wracking my brain!

  4. Trent
    Member
    Posted 16 years ago #

    This was a problem for me and it really was as simple as not creating a site on domain A and trying to map it, but rather just creating a new "site" with the Multi-Site Manager plugin and putting the path as "/". It doesn't matter about wildcard DNS in this example and shouldn't matter if you use directories or subdomains.

    In my understanding, the plugin will create a new blog and not map it to the original blog that you created on domainA/domainB.

    I might be missing something, but is just creates a new "blog" that just happens to be "domain B" and not related in the least bit to a blog on Domain A.

    Trent

  5. jdixon
    Member
    Posted 16 years ago #

    I realize now that what I'm trying to do is a bit different from what garg456 was attempting.

    Background:

    I have an installation of Wordpress MU version 1.3 located at domain mydepartment.university.ca/public/blogs. I imported about five blogs from old Wordpress installs that were scattered throughout my department. Since I'm using directories instead of subdomains all my blogs work and are set up something like this:

    http://mydepartment.university.ca/public/blogs/deptnews/
    http://mydepartment.university.ca/public/blogs/deptsummerinstitute/
    http://mydepartment.university.ca/public/blogs/engl500/
    http://mydepartment.university.ca/public/blogs/otherorganization-book/

    My Goal:

    I'm managing a blog for an organization outside of my department, and they would like their blog to be available from their domain like so:

    http://www.otherorganization-book.com/blog

    Currently their blog is located here:
    http://mydepartment.university.ca/public/blogs/otherorganization-book/

    What I've tried:

    First I installed the Wordpress Multi-Site Manager plugin inside the wp-content/mu-plugins directory.

    I've asked the system administrator if he'd point:
    http://www.otherorganization-book.com/blog
    to
    http://mydepartment.university.ca/public/blogs/
    using virtual hosts.

    Now when I visit http://www.otherorganization-book.com/blog, the browser loads my wordpress mu main blog, which is what I believe I want. (let me know if this is wrong)

    The problem is when I try to add a new site via http://mydepartment.university.ca/public/blogs/wp-admin > Site Admin > Sites, the admin page reports that the site was added successfully, but any link I try from the admin menu afterwards reports:

    "No WPMU site defined on this host. If you are the owner of this site, please check Debugging WPMU for further assistance."

    Here's how I added the site:

    Site Name: http://www.otherorganization-book.com/blog
    Domain: http://www.otherorganization-book.com/blog
    Path: /

    When I visit http://www.otherorganization-book.com/blog I get the same error message. My Wordpress MU installation remains totally borked until I go into the database and delete the site I added from the wp_sites table. After that everything is peachy, but I don't have the second site I need.

    Does anyone notice any flaws in my setup, or have any advice for me? I'm admittedly a bit of a noob with apache, and may be missing a step there. Thanks in advance!

  6. andrea_r
    Moderator
    Posted 16 years ago #

    Ding ding ding!

    You did it all correctly except for one eensy little massively important bit. Where it says Site name and Domain name? DO NOT USE WWW.

    Take out the WWW. It should work then. :D

  7. jdixon
    Member
    Posted 16 years ago #

    Okay. I tried adding the new site as:

    Site Name: otherorganization-book.com/blog
    Domain: otherorganization-book.com/blog
    Path: /

    And I'm still getting this error message:

    "No WPMU site defined on this host. If you are the owner of this site, please check Debugging WPMU for further assistance."

    I get the error on the following sites when I try to access anything after adding the site.

    http://mydepartment.university.ca/public/blogs
    http://www.otherorganization-book.com/blog

    Can you think of anything else that may be wrong?

  8. andrea_r
    Moderator
    Posted 16 years ago #

    Not without combing over the apache files. :-/

  9. lunabyte
    Member
    Posted 16 years ago #

    And you have the new domain added as a site alias in apache's config file?

  10. jdixon
    Member
    Posted 16 years ago #

    I found the apache2 httpd.conf virtualhost block! I have read privileges anyways. I'll post it here obfuscating the details...

    Listen 113.69.31.59:80
    <VirtualHost 113.69.31.59:80>
    DocumentRoot /home/department/www/public/otherorg-book/
    ServerName http://www.otherorganization-book.com
    SetEnv UVPHP_VERSION 5
    suPHP_ConfigPath default
    RewriteEngine On

    ProxyRequests off
    ProxyPass /blog/ http://mydepartment.university.ca/public/blogs/
    ProxyHTMLURLMap http://mydepartment.university.ca/public/blogs /blog
    <Location /blog/>
    ProxyPassReverse /
    SetOutputFilter proxy-html
    ProxyHTMLURLMap / /blog/
    ProxyHTMLURLMap /blog /blog
    RequestHeader unset Accept-Encoding
    </Location>

    ProxyHTMLLogVerbose On

    ErrorLog "|/usr/local/sbin/cronolog /usr/local/apache2/logs/www.otherorganization-book.com-error_log.%Y%m%d.%X"
    CustomLog "|/usr/local/sbin/cronolog /usr/local/apache2/logs/www.otherorganization-book.com-access_log.%Y%m%d.%X" combined

    </VirtualHost>

  11. lunabyte
    Member
    Posted 16 years ago #

    Seeing as there is no site alias, or anything at all for anything other than the main domain, apache doesn't know to serve that domain from that virtual host.

  12. jdixon
    Member
    Posted 16 years ago #

    Maybe I took the cowards way out but had the sysadmin change the following lines:

    ProxyPass /blog/ http://mydepartment.university.ca/public/blogs/
    ProxyHTMLURLMap http://mydepartment.university.ca/public/blogs /blog

    to:

    ProxyPass /blog/ http://mydepartment.university.ca/public/blogs/book-blog
    ProxyHTMLURLMap http://mydepartment.university.ca/public/blogs/book-blog /blog

    Now http://www.otherorganization-book.com/blog directs users to the blog I wanted it to, unfortunately it's not using the wordpress mu multi-site plugin though.

About this Topic