• Resolved JohnP

    (@johnp)


    I am installing a network on a brand new version of WordPress. As the site is currently live elsewhere, I have edited my local hosts file to work on the new site.

    When I used the Network Setup tool, I got the following warning:

    “Wildcard DNS may not be configured correctly – the installer attempted to contact a random hostname on your domain. This resulted in an error message: cURL error 6: Could not resolve host…”

    Do I need this wildcard entry before it will work?

    Then when I modified and uploaded the wp-config file as instructed, I got a 500 Error when I tried to log in again.

    The culprit is this line:
    define(‘SUBDOMAIN_INSTALL’, true);

    When I remove it the site loads, but with no evidence of multisite.

    Any suggestions will be appreciated

Viewing 3 replies - 1 through 3 (of 3 total)
  • Just to get us on the right page… Did you read this document first? https://codex.wordpress.org/Before_You_Create_A_Network

    Does the site load using the subdomain with the mentioned ‘define’ rem’d out or removed?

    I’ve heard you can’t run a multisite from a subdomain but I’ve done so before (I haven’t recently) and if the initial site runs from the subdomain then I’d think the network setup should run also.

    And just to make sure the line to enable the network setup from ‘tools’ is…

    /* Multisite */
    define( 'WP_ALLOW_MULTISITE', true );

    So then you’ll run Network setup and it should work giving you the lines to add to htaccess and wp-config.php… Right?

    The only other issue I can think of is some random character being inserted into your config file, your server not supporting htaccess, or possibly you might be trying to run a multisite from a subdirectory instead of a root install.

    Again, just to make sure we’re on the same page, did you read this too?

    https://codex.wordpress.org/Create_A_Network

    So if none of what I’ve said helped you then feel free to ask more questions and if it is something odd there about your server then you might want to ask for some specific server help someplace like Stack Exchange.

    I have never installed Multisite on a Windows or Nginx box but it wouldn’t surprise me to find someone somewhere who has if that happens to be where you are here.

    Thread Starter JohnP

    (@johnp)

    Yes, I have read both the codex documents.

    I am not trying to run the site from a subdomain, it is from a root install.

    Yes I enabled network setup from tools using the define above, and after network setup I added the lines to both .htaccess and wp-config.

    With the line commented out as below, the server works fine.
    /* define('SUBDOMAIN_INSTALL', true); */

    I tried uncommenting, and the site loaded, but with a message:
    “One or more database tables are unavailable. The database may need to be repaired.”

    I tried running the repair script, but it was only partially successful.

    I’ve decided to drop the database and start again at this point.

    With WP 5.1.1 “define(‘SUBDOMAIN_INSTALL’, true);” is not working.
    I used “define(‘WP_SUBDOMAIN_INSTALL’, true);”
    Some documentations are too old.

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

The topic ‘500 Error on new network installation’ is closed to new replies.