Title: Mulitsite on Google Cloud
Last modified: April 24, 2019

---

# Mulitsite on Google Cloud

 *  [kaydena](https://wordpress.org/support/users/kaydena/)
 * (@kaydena)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/mulitsite-on-google-cloud/)
 * 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)

 *  [JNashHawkins](https://wordpress.org/support/users/jnashhawkins/)
 * (@jnashhawkins)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/mulitsite-on-google-cloud/#post-11464762)
 * 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/](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.

## Tags

 * [google cloud](https://wordpress.org/support/topic-tag/google-cloud/)
 * [multisite](https://wordpress.org/support/topic-tag/multisite/)
 * [wp-config.php](https://wordpress.org/support/topic-tag/wp-config-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [JNashHawkins](https://wordpress.org/support/users/jnashhawkins/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/mulitsite-on-google-cloud/#post-11464762)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
