• 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 - 31 through 45 (of 47 total)
  • Thread Starter sdoss

    (@sdoss)

    I’m kicking it

    I’d tell you what my boss tells a machine when it gives him problems, and altho it seems to always work, I’d probably never be allowed to post again ??

    The only thing that looked off to me was this:

    <Directory “/private-set-1/wwwroot/apache2/”>

    Why the quotes?

    Thread Starter sdoss

    (@sdoss)

    Why the quotes?

    Don’t know? Other than webmin puts them there; I’ve seen directory directives (sheesh) both surrounded by quotes, and not. I’ve removed the quotes from mine, but no affect on loading times.

    Thread Starter sdoss

    (@sdoss)

    hmmm…something else I’m seeing in the apache error log (which may or may not be ‘normal’, again, my ignorance blares out):

    [Sun Feb 13 08:55:20 2011] [notice] Graceful restart requested, doing restart
    [Sun Feb 13 08:55:22 2011] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
    [Sun Feb 13 08:55:22 2011] [notice] mod_python: using mutex_directory /tmp
    [Sun Feb 13 08:55:22 2011] [notice] Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch15 mod_perl/2.0.2 Perl/v5.8.8 configured — resuming normal operations

    also, don’t know if it’s related to wordpress or not.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    It’s only abnormal if Apache is restarting a lot.

    Mine restarts only when I upgrade something. If you see a LOT of restarts, ask your host to help you look. That usually indicates something’s configured poorly.

    Thread Starter sdoss

    (@sdoss)

    Ipstenu, unfortunately, we are the host…but I’m pretty sure that my issue with the wordpress pages loading slowly (painfully so) is apache config vs what wordpress wants/needs. Pages loading outside of wordpress don’t have a problem.

    I did find, hunting through posts you’ve dealt with, a reference to


    https://thethemefoundry.com/blog/optimize-apache-wordpress/

    which appears to be easily read/interpreted and may be of use. As we typically use apache’s default config settings (they’ve always been good enough in the past), there may be some tweaking I can do without hurting the other sites.

    If you have any other suggestions, my thanks in advance…

    Thread Starter sdoss

    (@sdoss)

    Python & Perl (from your error logs) don’t have anything to do with wordpress. Hrm.

    Thread Starter sdoss

    (@sdoss)

    Ok, ‘the boss’ is feeling it’s an apache configuration, and possible how wordpress interacts with apache and I’ve mucked something up.

    I don’t think it has anything to do with permissions, as I’m not missing anything on my pages.

    It MAY have something to do with the fact that my main site isn’t just a portal into wordpress, but actually has ‘stuff’ in it. And perhaps that ‘stuff’ isn’t up to par, and causes problems. Which may explain why getting to wp-admin is just as slow as the sites.

    So..this morning I think I should go down the path of recreating what I currently have in my main site in a new sub-directory site, then deleting the pages out of my main site, and putting the main site back on the default theme. I really only need to keep two pages, home page and one subsequent page, so maybe will not be a hardship.

    But would like to avoid the above if at all possible.

    So…3 questions

    1) I mentioned that I’m not using any plugins, but in fact 3 plugins show from the Super Admin page – Akismet, Hello Dolly and WordPress Importer. The page shows 2 things: a message in pink at the top:
    The plugins page is not visible to normal users. It must be activated first. Activate
    and that all 3 are inactive. Is it enough to have them ‘inactive’, or should I ‘delete’ them?

    2) Is there an easier way to ‘move’ my main site to a sub-directory? If so, is it ‘safe’? Or would it be safer to re-create? Does deleting the page(s) via the dashboard remove all references to a page? Or will there be ‘stuff’ hanging out there after deleting? If so, what do I need to look for?

    3) I haven’t explored the WP_DEBUG option in WP-CONFIG; will this tell me anything?

    4) ‘the boss’ asked about the possibility of having two instances of WordPress running from the same document-root directory under two different domains. Can it be done?

    Ok, more than 3 questions. But I’m feeling the water rise, here, and I’ve no boat, paddle or breathing apparatus.

    Thanks for your help.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    1) Inactive is fine.

    2) No, no easier way than edit the database currently exists. It’s a PITA in WP MultiSite. :/

    3) Maybe. But if you have ZERO plugins installed, probably not much.

    4) Not … exactly. You can use ONE MultiSite to run TWO domains, though. Does that help?

    Thread Starter sdoss

    (@sdoss)

    Ipstenu:
    1) ok. I’ll leave them there
    2) have already lost widgets 3 times trying to edit the database, so not doing that again
    3) hrm
    4) no. his thought is keep what we have, but install a new instance to do some debugging.

    So…off to #2. Will post back.

    Thread Starter sdoss

    (@sdoss)

    minor update: ‘the boss’ has made some changes (and I will elaborate as soon as I get it from him) to both dns on the server and mysql. Performance is still slow, but it’s more intermittent. Also, outside access is better, but again, intermittent. I’m still pursuing moving my main site to a sub-directory so I can get the main site back to the default theme with nothing in it, as I believe the problem (contention, whatever) exists there.

    At any rate, once I get the speed back, will re-post with the steps we took to fix it.

    Thanks for all your help and patience.

    Thread Starter sdoss

    (@sdoss)

    OK, have successfully moved my main site to sub-directory, and removed all pages/posts/comments etc from the main site. Put back the twentyten default theme, with no plug-ins.

    Still slow to respond. What’s curious, is…if we double click a link (even in admin, while navigating through different things), response time is pretty quick. It’s clicking just ‘once’ on a link, or initial load of the page (admin included – in fact, each of the sites) that takes a long time. And, if I’m in a browser and refresh the page, one click takes a long time, double (or multiple, depending on the frustration level) seems to make it respond faster.

    Any ideas?

    Probably Apache then. Can we get a link to your site?

    Thread Starter sdoss

    (@sdoss)

    Main url is https://www.ca-wp.com

    There’s nothing but the twentyten there.

    Do you need subdirectories as well?

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