• Resolved sdoss

    (@sdoss)


    I’m hoping to get some confirmation here that I am understanding what I’m reading re multi-site installation, and how/why it works, as well as ending with a couple of questions I’m still unclear on.

    Multi-site allows you to create/host more than one site in a single instance of WordPress. That’s easy.

    Multi-site can make use of ‘sub-domains’ or ‘sub-directories’. Also easy.

    If using a ‘sub-domain’ method:
    WordPress MUST be installed in the document-root directory, and Apache configured with a domain name pointing to WordPress
    Sites created in WordPress must also be mapped in WordPress to the desired domain (via a WordPress plug-in)
    DNS record of the desired domain points to the host server; Apache on the host server is configured to point to the WordPress domain, and WordPress, on recognizing the original domain request, points to the appropriate site.

    Am I right so far?

    If using a ‘sub-directory’ method:
    WordPress COULD be installed in a sub-directory of document-root, and Apache configured to point to this sub-directory
    Sites created in WordPress do NOT need mapping
    DNS record of desired domain points to the host server; Apache on the host server is configured to point to WordPress domain/site

    Now the question is, am I anywhere close??

    I’ve installed WordPress in a sub-directory of document-root, and activated the multi-site option as per the instructions posted here. (installed on a debian server, with apache and php 5.2.5) Because WordPress is in a sub-directory, my only option was to use sub-directories for my sites. My desire is to use WordPress to develop and serve the web pages without an obvious ‘redirection’ in the url. If someone goes to https://www.site1.com, I’d like the url to consistently read https://www.site1.com/page…

    So here’s the real question: If I want site 1 to be accessed via https://www.site1.com, and site 2 to be accessed via https://www.site2.com, and not have the url display a redirect, do I use sub-domain? Or can I use sub-directory? And if I can use either, can you point me to the documentation that tells me that? And how? And why?

    Apologies if the above sounds ignorant, but my eyeballs are bleeding after spending a week of searching/reading all I can find on multi-sites ??

Viewing 15 replies - 16 through 30 (of 47 total)
  • Thread Starter sdoss

    (@sdoss)

    At the very least, we’re good for telling you what it’s not. ??

    Andrea – isn’t that the best way to teach?

    What’re my chances of seeing the directives you have for your default and wordpress virtual hosts? Name your price ??

    I gotta run out for the day, but I may have posted them before. I have a wildcard named host in apache. none of the redirect match.

    oh wait, this might help…

    see slide 20.

    Thread Starter sdoss

    (@sdoss)

    Bless you ?? Will post back when (NOT if) I get it working.

    Thread Starter sdoss

    (@sdoss)

    It’s amazing how over complicated we humans tend to make things :/

    So…I’ve redone my network based on domain name rather than ip. Should have done this in the first place.

    Had to replace all occurrences of ip in the database with domain name. Seems to have worked, except I’ve lost widgets on the one page that was altered before I did this. Clues on how to get the widgets back? Or where they went?

    On to the next….

    I can see all sites from with Super Admin. I can edit, view, go the backend – all seems good, and now I think is the time to map domains.

    Yes? Will post back momentarily…

    I’ve redone my network based on domain name rather than ip. Should have done this in the first place.

    that woudl have been helpful for us to know from the start as well. ??

    Might have to just redo those widget though. the data in them is saved in serialized arrays in the db and a simple search & replace usually messes them up.

    So yeah… onto domain mapping. (a new thread woudl be best if you have issues)

    Thread Starter sdoss

    (@sdoss)

    Well, put the widgets on. Haven’t mapped yet. Now have an issue with Apache, throwing out the message

    Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ‘LimitInt
    ernalRecursion’ to increase the limit if necessary. Use ‘LogLevel debug’ to get a backtrace., referer: https://www.mywordpresssite.com/

    causing the pages to take forever to load. Do see a missing image error, as well, then a ‘graceful restart’ message. Will research (and ultimately, learn my lesson) this, fix it, THEN on to mapping.

    Andrea, and Ipstenu, thanks for your patience and help in this. Next issue, I promise not to be so stubborn ??

    Thread Starter sdoss

    (@sdoss)

    ok

    Thread Starter sdoss

    (@sdoss)

    Tried to close this post; shows resolved, but I can still post. Tried to open new thread on different subject; shows unresolved, but can’t post. Having issues with Apache/browser/time it takes to load a page, even through wp-admin.

    I resolved an issue where my apache error.log was reporting a loop, in that going to the domain of my wordpress site exceeded the limit of 10 internal redirects.

    But my page(s), including wp-admin, are taking an average 1-5 minutes to load!

    Have verified .htaccess; in fact, recreated with it’s original rules. Have verified no .htaccess files in parent directory, even though mine is in document-root. Have attempted adding rules to catch loops, and have since removed them as there was no change. Any suggestions as to where I can look next?

    And, I did open this problem under a new thread, but it defaulted (apparently) to resolved and won’t let me post to it.

    Thanks

    – resolving a thread does not close it. only mods can close threads.

    – turn off your plugins to start. and what host are you on?

    Thread Starter sdoss

    (@sdoss)

    resolving a thread does not close it. only mods can close threads

    ok. I’ll figure out the forum eventually.

    turn off your plugins to start

    don’t have any plug-ins activated

    and what host are you on

    on a debian machine, apache2, php 5.2.5(?) and mysql

    So… dedicated box out on the interwebs or local machine? Cuz yes, it matters.

    What domain name?

    Thread Starter sdoss

    (@sdoss)

    I can’t say it’s dedicated to the web, as it’s in-house development as well. But not entirely local, as we have several websites either set up as development or served from this machine. Not a pc, though, and if you need more info, I can get you that.

    The domain we’ve set up is ca-wp.com.

    I haven’t attempted mapping yet, as I want to get the apache thing worked out. The other websites’ pages are not affected, just the pages coming from wordpress. So, again, I’m thinking something in my apache setup, either the ‘*’ host or the ca-wp.com host.

    Also, as we’re new to this and quite excited to be exploring wordpress, we’ve attempted a couple of our own themes, and I’m going down the path of picking them apart (as the internal redirects were the result of things in the functions.php files that shouldn’t have been there)

    So…if you have suggestions as to what I can look at, it would be greatly appreciated. As you can tell, I’m not ‘literate’ in these things as I probably should be. Have learned alot since starting this, tho ??

    Coll – sometimes if you’re working locally and it’s just an IP or “localhost” things can go squirelly.

    It’s always good to make sure you’re on the default theme and running no plugins. that eliminates all kinds of issues.

    You can bump up the internal redirects, but that doesn’t fix it.

    So yeah – probably something in the Apache config. What’s the vhost entry look like for it?

    Further reading for general stuff: https://wpmututoprials.com (dig deep in the archives) and this book when it comes out.

    Thread Starter sdoss

    (@sdoss)

    vhost for ‘*’ begins like this:

    ServerAdmin [email protected]                DocumentRoot /private-set-1/wwwroot/apache2/
    <Directory />
     Options FollowSymLinks
     AllowOverride All
    </Directory>
    <Directory /private-set-1/wwwroot/apache2/>
     Options FollowSymLinks Indexes MultiViews
     DirectoryIndex index.php
     AllowOverride All
     Order allow,deny
     allow from all
    </Directory>

    of course, there are other directory options in the file.

    vhost for ca-wp.com looks like this:

    ServerName ca-wp.com
    DocumentRoot /private-set-1/wwwroot/apache2
    <Directory "/private-set-1/wwwroot/apache2/">
     allow from all
     Options FollowSymLinks Indexes MultiViews
     UseCanonicalName off
     AllowOverride All
    </Directory>
    ErrorLog /var/log/apache2/ca-wp.com.error.log
    LogLevel debug
    ServerAlias www.ca-wp.com
    Options FollowSymLinks

    Our main domain is not using the default theme; I’ve thought that we should take what we’ve got there and move to a sub-directory site, and just leave the main site basically empty, so I may try that as well.

    Will spend my Saturday evening combing through the tutorials. If you spot something horribly wrong in my configs above, please let me know.

    Thanks again for your time.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    The problems with your posts is that the spam catcher here keeps thinking you’re a spammer. I’m kicking it. Sorry about that.

Viewing 15 replies - 16 through 30 (of 47 total)
  • The topic ‘Trying to simplify/understand multi-site’ is closed to new replies.