• Resolved abdweb

    (@abdweb)


    Hi everyone, I am having the most ridiculous challenges with setting up a sub domain multisite. I have gone back as far as wordpress 3.92 and still cannot get it working, I have now tried it on 2 dedicated servers.

    Here is my questions:

    What is the most recent version of WordPress that someone has been able to do a clean install of wordpress multisite with sub domains and actually having it work to the point that you could view the subdomains and go into their dashboards.

    I am not talking about an upgrade here, I am talking about a completely fresh clean install with a blank database etc..

    Thank you very much

    Cheers

    Clive

Viewing 6 replies - 1 through 6 (of 6 total)
  • Last week I did a clean install of a sub-domain wordpress network from http://wordpress.org/latest.zip

    What problems are you experiencing? provide symptoms and explanations and we may be of more help

    Thread Starter abdweb

    (@abdweb)

    Hi, sorry, I just wanted to check that someone was able to do it successfully.

    Sub folder installs have always worked fine. However, with sub domains, I just get a “page not found” error. I don’t have sunrise.php installed at the moment because I won’t be using domain mapping until later.

    Willard DNS is enabled and there is nothing else in .htaccecc. Wp-config.php is set up exactly as the install dictates. Its happening on both of my dedicated servers. One of my hosting techs is saying that the problem is that the sub domains are not having http:// written into the wp-sites table and that this issue is affecting many other people, which is why I tried switching to earlier WordPress versions instead.

    Basically I can’t get into the sub domains dashboard or view them but I can see the main site with no issues.

    Tasks very much for replying.

    Cheers

    Clive

    Thread Starter abdweb

    (@abdweb)

    Hi again, after your post, I decided to try again, from scratch on a clean account.

    Firstly, I wanted to check the obvious – to find out whether wildcard subdomains were working correctly in themselves.

    This can be done easily, just ping a random subdomain that doesn’t actually exist, such as 123.runmyown.website and it should return my server’s IP address, which is does (77.245.66.234).

    After setting up the wordpress site with the latest version, I turned it into a mutlisite. The .htaccess is this:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [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).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    The wp-config is this:

    /* Multisite */
    define( ‘WP_ALLOW_MULTISITE’, true );
    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, true);
    define(‘DOMAIN_CURRENT_SITE’, ‘runyourown.website’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    However, add a subdomain gives the old white screen of death.

    Ging back in, I can see that the new website has been created. However, the link to the dashboard goes back to the main site, as does the Visit link

    Thread Starter abdweb

    (@abdweb)

    Now, when I got to a created subsite, I get

    Error establishing a database connection

    Thread Starter abdweb

    (@abdweb)

    HI, managed to get it resolved with help of my Hosting Company. I had to use a workaround that is here:

    https://core.trac.wordpress.org/ticket/32308?replyto=26#comment

    You basically change two lines in config.php to:

    /** Database Charset to use in creating database tables. */
    define(‘DB_CHARSET’, ‘utf8mb4’);

    /** The Database Collate type. Don’t change this if in doubt. */
    define(‘DB_COLLATE’, ‘utf8mb4_general_ci’);

    Everything is no working like a charm, however this is only a temporary measure until the problem itself is fixed. We’ve spent days on this 🙁

    Cheers

    Clive

    Thread Starter abdweb

    (@abdweb)

    Many thanks to @tvape for suggesting it

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Very simple multisite sub domain question’ is closed to new replies.