• Resolved gipsea

    (@gipsea)


    Hi everybody, it seams such an obvious question but still can’t find the answer. I created a multisite fresh installation and creted 2 site using sub directories. From the super admin point of view everything is fine.

    At this point, I thought wordpress will populate the assigned directory with the required files and configurations but instead it has only created the empty directories

    What next? nowhere I’ve found how to correctly install the new site. I can obviously treat as new installation downloading latest WP but what I should use for DB? Should I share same DBof the main site but with different prefix? shall I use a new DB?

    I haven’t understood how the main sites syncs with the new sites if these are installed separately.

    Can someone please give me some hints? I searched the dev and lear wikis but it only shows how to create a multisite but not how to polulate-

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • WordPress does not create or populate physical subdirectories for each sub-site in a multisite network.

    In WordPress Multisite with subdirectories:

    • All sub-sites share the same WordPress core files.
    • All sub-sites live virtually under subdirectories, e.g.,
      example.com/site1,
      example.com/site2.
    • WordPress routes the request internally using rewrite rules and database information. No need to create actual directories like /site1/ or /site2/

    All sites in the network share the same database, but:

    • Each sub-site gets its own set of tables with a unique prefix.
    • For example, site ID 1 (main site) has tables like wp_posts, wp_options, etc.
    • Site ID 2 would have wp_2_posts, wp_2_options, etc.

    So, there is no need for you to manually populate anything. WordPress handles everything for you. For more details, see this.

    Thread Starter gipsea

    (@gipsea)

    Dear @jdeep aydee

    thanks for yout time answering my question. Thinking I did somethig wrong, I deleted the previous sub-sites and I’ve created a new one. I can access edit the sub-site edit but cant previe the subsite/dashboaard. I receive error 404 with the address :site/subsite-directory/wp-admin

    in the dashboard of the main site there is a suggedtion to install the “All-in-One WP Migration Multisite Extension” which is with subscription for 27$ /month. Do we really need a plugin for this feature?

    is there any further hints?

    cheers

    • This reply was modified 5 months, 3 weeks ago by gipsea.

    in the dashboard of the main site there is a suggedtion to install the “All-in-One WP Migration Multisite Extension” which is with subscription for 27$ /month.

    That’s not a suggestion from WordPress. It must be coming from the free version of this plugin (if you have it installed), another plugin, or even your hosting provider.

    Do we really need a plugin for this feature?

    No, you don’t. And no, the plugin isn’t even going to fix your present problem. That’s because you don’t yet have WordPress Multisite configured and functioning properly. You must fix basic functionality before worrying about migrating your old site.

    I receive error 404 with the address :site/subsite-directory/wp-admin

    I suspect that you have a manually-created directory on your file system at site/subsite-directory/.

    As has been explained to you already, WordPress multisite subsites are virtual. Therefore, there should be no such directory on the file system; otherwise, the static directory will take priority, and WordPress multisite’s virtual/dynamic directory cannot run at all.

    So, check your file system and delete the directory corresponding to your subsite. There shouldn’t be any such directory at all. If you don’t have such a directory on the file system, then…

    1) What happens when you navigate to :site/subsite-directory/ in the browser?
    2) Can you share the real subsite address so we can take a look?

    Standing by for feedback.

    Thread Starter gipsea

    (@gipsea)

    Dear @gappiah thanks for ur inputs. Before starting with multiple site I’ve read and seen few tutorials and I think nowhere I cearly read how the new sites are created before the answers in this post which is really helpfull and thank u one more time.

    The actual site is in the local headless server not available from outside.

    When I set it up at the really beginning I created the directories and I’m not sure if this has messed up the actual multisite setup. Yesterday, before my post, I deleted the directories but the dashboard and site were still not working. I’m wondering if the event of initially have such directories would have influenced the multisite process. Are you aware of it? Is there anything in the DB or setup file where I could take a look?

    I actually also created a new sub-site with a random name to make sure this won’t interfere with the original installation and I still have the same issue.

    Is there an internal WP log I could check to see if there is some errors in redirecting to the child sites?

    My last thought about this issue is that being the parent site on a headless server and not on my phisical pc, to reach it I inserted a line in hosts file like: SERVER_IP PARENT_SITE_NAME. Does it influence the behaviour?

    The sites are still empty and I can flat the installation including the DB. I still really like to learn how to fix VS reset and restart but if we are in loophole I’m more than happy to do it.

    cheers

    Thread Starter gipsea

    (@gipsea)

    hi everybody.

    I’ve been away to double check all of the above. Considering I was in the process of creating the structure of a multisite server, there was no content to the original installation and I decided to dump the DB and reinstall WP from scratch.

    After I set up WP for multisite with subdirectories, the dashboard is working fine so I tried to create the first network site.

    Again, with fresh installation as soon as I open the new networksite dashboard I receive the error 404.

    I run the server behing proxy but because the site is sub-directory I don’t see whay it should create a problem

    The main site is a 3rd level FQDN (a sub-installation from my main domain). Can this be a problem too?

    thanks

    Thread Starter gipsea

    (@gipsea)

    Hi.

    I’m trying all possible options I have in hands to see if there is some bottleneck somewhere before the server with no success.

    At the moment I also set up wp at the root of public domain (before if was a 3rd level domain) but nothing.

    To jump the haproxy, I tweak to reach the server directly through vpn and still no joy.

    At this stage, my only options left are:

    .htaccess redirect problem or server set up

    regarding .htaccess I copied the text from the set up page of multisite but I’ve seen on some posts that .htaccess is different between site and directory multisites. Is it correct?

    regarding server set up, I don’t know where to start to dig for some info. can someone share the apache virtualhost file? I’m really in the blind and further helps will be greatly appreciated

    cheers

    Thread Starter gipsea

    (@gipsea)

    found the loophole!!!!!!

    after many attempts I found a tutorial with the virtualhost file. I was missing these lines:

    <Directory /var/www/html/> Options FollowSymLinks AllowOverride All Require all granted </Directory>

    after update the files the multisite is magically alive.

    If any from WP is reading this post, I think this piece of information should be in the documentation

    thanks for patience and support

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.