• I entered the following in the wp-config.php file as instructed.
    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, false);
    define(‘DOMAIN_CURRENT_SITE’, ‘34.83.40.35’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);
    and added this in the .htaccess file replaceing what was there.
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    what I get when I log out is Error establishing a database connection

    If I comment out the line added to wp-config.php, I get my site back but it is not a Multisite.

Viewing 1 replies (of 1 total)
  • I’ve never built a multisite on the Google cloud but it shouldn’t be that difficult. I did just convert a WordPress install on a neat little cloud server to a multinetwork multisite and it wasn’t difficult.

    Read this through and then follow the directions from the section ‘Activating Multisite on a Fresh WordPress Installation’.

    https://premium.wpmudev.org/blog/ultimate-guide-multisite/

    You’ll add the code to wp-config to enable multisite, come back to the dashboard and actually convert the site to multisite then finish off by copying the provided statements to WP-Config and your htaccess.

    Sometimes you’ll have troubles with a subdomain install when trying to use an IP address for your subsites. You can’t have a subdomain of an IP address but you can map an IP based subdirectory defined site or a domain name or even a subdomain name after the fact.

    The place that will bite you is when you have an older site on an IP address which then gets converted to a multisite. You can’t build a network as a subdirectory install after 30 days or so.

    You might be much better off buying a domain name for $10.00 even if the domain name isn’t all that great… call it expediency.

    You might also need to define a cookie domain to allow logging into the subsite’s dashboard after you create the subsite(s). You’ll see ‘too many redirects’! In that case, add the below to your WP-Config.php right after the other defines for multisite…

    define('COOKIE_DOMAIN', '');

    See if that doesn’t fix that login problem…

    Also, I have no idea of how to map a domain name to a Google cloud server. My best guess is to point it at the IP address and try it. Else call Google support for help.

Viewing 1 replies (of 1 total)
  • The topic ‘Mulitsite on Google Cloud’ is closed to new replies.