Support » Networking WordPress » Domain problems using multisite

Viewing 8 replies - 1 through 8 (of 8 total)
  • Update: If I remove the whole line or only COOKIE_DOMAIN the site is gone ERROR couldn't make a database connection

    JNashHawkins

    (@jnashhawkins)

    I saw this the other evening and was going to answer but I saw the second post and thought someone else was answering so I left it to them. Turned out it was your ‘update’ post.

    I don’t like anything but Apache servers on Linux for the multisite itself… if you’re on Windows then you’re on your own as far as I’m concerned… It can be done and others might support you on that but I shrink away from Windows Servers.

    Multisite isn’t exactly easy but if you’ll follow the directions and not try things outside of the help documents you’ll usually get it.

    Since your WordPress doesn’t seem to want to work I think I’d start from the beginning. Print out this document and work your way through it.

    https://wordpress.org/support/article/create-a-network/

    You do not need the domain mapper plugin anymore. That is old advice! You don’t need a sunrise.php file either unless something else (usually a plugin requires it).

    The best way is to start from a regular install – get that running well first! Get your root domain name working and the www answering. Test everything including the plugins you plan to use and make sure the theme works properly for your root website. This is important. You need to start from a decent base. Get all this right!

    Your DNS looks fine except two of your DNS servers don’t have ‘Glue’ but that won’t cause you problems right now. It might be good to fix that… The quickest fix might just be to switch to Cloudflare for DNS but that’s a separate issue. Do it now or do it later or ask your DNS host to help you… Me? I’d have already gone with Cloudflare.

    Next is to make the few changes needed to bring up the Network and do the initial setup. Follow those directions and get to the network setup page before trying anything else. You’ll want your plugins all disabled and make sure permalinks are working. I usually set permalinks to ‘day and date’ but anything other than ‘plain’ will work just fine.

    Wait patiently for the network to finish up its setup and you’ll be given a change for your wp-config and a different htaccess change.

    WordPress may even do the htaccess change for you. Just follow those directions carefully and if the change was already made then don’t ‘double it’. Do put the changes in the proper places according to the directions. You can make the edits via a FTP client if you want but be careful as FTP clients can add extraneous characters when you save files. The best bet is the control panel’s file manager.

    Don’t let the subdirectory and/or subdomain setup throw you either and don’t expect file directories for your subsites. They won’t be there. WordPress takes care of that on its own.

    From here you should wind up with a running multisite ready for you to add your first new site. That’s when things get interesting.

    So feel free to follow up on this setup stuff in this thread.

    If you need help with further questions (DNS and/or adding new accounts and such) ask in a new post to help us keep the distractions and clutter down.

    I’ll be watching!

    kevinvonk

    (@kevinvonk)

    Dear @jnashhawkins ,

    Thank you, I would’t like to know how to fix the dns without using the “old” plugin. I don’t have any options to change stuff… My site works really well except from the fact that if you do not type in www it loads the “login page” the only problem I have at the moment is finding a solution for getting the plugin to work so I can fix the main www issue.

    Kind Regards,

    Kevin

    JNashHawkins

    (@jnashhawkins)

    Okay… What I outlined is what I’d do (and have done) for myself.

    If you want to use the WordPress built-in domain mapper you’ll find that at

    Dashboard –> mysites –> NetworkAdmin –> Sites –> All Sites

    You’ll either add a new site there or modify the existing sites via the Edit link under the domain.

    The ‘WWW’ problem is probably in your htaccess file which would be automatically generated for you (well, it should be) when you do what I suggested but you can do that manually also.

    Check in the Dashboard –> mysites –> NetworkAdmin –> Network setup –> Settings –> Network Setup you’ll see what WordPress thinks your htaccess in the web root needs to be. Compare what you have with what WordPress suggests!!!

    Maybe post your htaccess file from your root directory so we can take a look.

    If you’ve tried to map ‘www + the domain’ somewhere then you’ve probably broke all that. Mapping is for domain to site mapping.

    DNS is pretty much okay for now and the domain mapping is done inside of WordPress so don’t think DNS when the mapper facilities take over.

    Think Disco! “Dis domain goes here while dat domain goes to dare!”. Think “DNS is done with all that once the domain selected by the visitor is pointed at the WordPress install”. That’s how I keep ’em straight anyway.

    Hopefully, this will help you if you don’t want to start fresh… Are you sure you don’t want to start fresh?

    kevinvonk

    (@kevinvonk)

    Dear @jnashhawkins,

    Tank you for your time and energy.
    I can’t start over again because I have 4 site in use already…
    .htaccess:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) kevinvonk/$1 [L]
    RewriteRule ^(.*\.php)$ kevinvonk/$1 [L]
    RewriteRule . index.php [L]
    </IfModule>
    php_value upload_max_filesize 300M
    php_value post_max_size 300M
    php_value memory_limit 100M
    # END WordPress

    Kind Regards,

    Kevin

    Dear @jnashhawkins ,

    Already had time to look at it?

    Kind Regards,

    kevin

    Could you provide a screenshot of your mappings from the mu-plugin itself? I can’t even remember what that looked like after all this time of not using it here but I’m wondering what it might show me.

    I’d also like to see what network setup wants for your htaccess and to compare that to what you have right now.

    Dear @jnashhawkins,

    I deleted the plugin because it didn’t work properly. I couldn’t get rid of the cookie domain error.

    Can you be more specific on what you want to see? Files, screenshot of the dashboard etc..

    Kind Regards,

    Kevin

    • This reply was modified 9 months, 3 weeks ago by kevinvonk.
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Domain problems using multisite’ is closed to new replies.