Title: Problems with Multisite WordPress Installation
Last modified: June 28, 2024

---

# Problems with Multisite WordPress Installation

 *  Resolved [fauf2522](https://wordpress.org/support/users/fauf2522/)
 * (@fauf2522)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/problems-with-multisite-wordpress-installation/)
 * I am encountering issues while setting up a WordPress Multisite Network on my
   company’s production server, which is globally accessible using the subdomain
   localization.exe.sk (note: we do not own exe.sk; it hosts a different site).
 * It all started when I tried to move new wordpress site (a multisite network, 
   each site is a language variation of the same site), from testing server to a
   production server.
   I did it by exporting wordpress database from testing server
   and importing it to production server (alongside with the old database from the
   old web), and then copying new site’s wordpress files from testing server to 
   production server (while backing up old web files somewhere else), also ensuring
   all privileges to files, and in database, that db creadentials are correct, to
   ensure that everything is set up correctly.Also, in wp-config file, i changed
   the DOMAIN_CURRENT_SITE to localization.exe.sk.
 * After transferring the Multisite network to the production server as stated above,
   I encountered error, complaining that it can’t connect to database.
   It stayed
   same even after tinkering with other wp-config values, and changed only after
   I changed SUBDOMAIN_INSTALL to true – then the error changed to TOO_MANY_REDIRECTS(
   why so?).I am unsure if `SUBDOMAIN_INSTALL` is meant for this situation or if
   it is intended for naming sites within the network as subdomains. TLDR
 * Then i tried to do fresh install of wordpress, which worked out of the box, accessible
   even from our subdomain (localization.exe.sk), but after enabling multisite network(
   by following guide on wordpress, what had worked for me before, just not on the
   production server), it had stopped working, with same errors as the new page 
   before – SUBDOMAIN_INSTALL=false -> DB error, SUBDOMAIN_INSTALL=true -> TOO_MANY_REDIRECTS
   error.
 * The testing server is accessible only from within the domain or via VPN.
   The 
   production server is accessible both worldwide and from within the domain/VPN(
   the worldwide IP address is different from the internal one).It seems to be primarily
   a Multisite (which is crucial for multilanguage functioning) issue because disabling
   Multisite allows everything, including the database to work correctly.
 * Server Configuration with httpd:
 *     ```wp-block-code
       <VirtualHost xxx.xx.x.x:80>
           ServerName 172.16.5.5 
           DocumentRoot "/var/www/exe"
       </VirtualHost>
   
       <VirtualHost xxx.xx.x.x:80>
           ServerName localization.exe.sk
           DocumentRoot "/var/www/exe"
       </VirtualHost>
       ```
   
 * The `xxx` placeholder represents the internal IP address accessible only through
   VPN/domain.
 * PHP Version: 7.4.30.
 * Multisite Configuration in wp-config.php:
 *     ```wp-block-code
       define( 'ALLOW_MULTISITE', true );
       define( 'MULTISITE', true );
       define( 'SUBDOMAIN_INSTALL', false );
       define( 'DOMAIN_CURRENT_SITE', 'localization.exe.sk' );
       define( 'PATH_CURRENT_SITE', '/' );
       define( 'SITE_ID_CURRENT_SITE', 1 );
       define( 'BLOG_ID_CURRENT_SITE', 1 );
       define( 'FS_METHOD', 'direct' );
       ```
   
 * Any help or guidance on resolving these issues would be greatly appreciated. 
   Thank you!
   At the moment, on the localization.exe.sk, there is just english page
   from the new version of page, with disabled multisite network.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblems-with-multisite-wordpress-installation%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/problems-with-multisite-wordpress-installation/#post-17858046)
 * I’m unsure how a localization. subdomain request gets routed to your server, 
   but I suspect that’s part of the problem. A subdomain multisite installation 
   requires WP to be installed in a server’s public root. Even though that may be
   the case here, I suspect to multisite it _looks_ like a non-root installation
   since your server only serves one subdomain itself. While I have no doubt you
   could route several subdomains to your server, I don’t think it’s compatible 
   with a multisite subdomain install.
 * I think you will need to use a multisite subdirectory installation in this situation.
   Then the question is reduced to why multisite cannot connect to the DB. If you’re
   absolutely sure all the DB credentials in wp-config.php are correct, then the
   issue has to be something about how your servers are configured. Perhaps a firewall
   or modSecurity configuration needs to be adjusted?
 *  Thread Starter [fauf2522](https://wordpress.org/support/users/fauf2522/)
 * (@fauf2522)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/problems-with-multisite-wordpress-installation/#post-17868487)
 * Solved it.
   Pardon my ignorance,I forgot to mention that the new wordpress install
   was only the new files, but to an old database that used the multisite network…
   The new installation had worked as long as the multisite network was turned off,
   so i could view the main “blog” – english version of page.Only after enabling
   multisite it stopped working, it seems because of url address in wp_blogs, which
   led to local ip address accessible only throuugh domain/vpn…
 * After changing these entries in wp_blogs to correct url, it started working.

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

The topic ‘Problems with Multisite WordPress Installation’ is closed to new replies.

## Tags

 * [Database Error](https://wordpress.org/support/topic-tag/database-error/)
 * [multisite](https://wordpress.org/support/topic-tag/multisite/)
 * [subdomain](https://wordpress.org/support/topic-tag/subdomain/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 2 replies
 * 2 participants
 * Last reply from: [fauf2522](https://wordpress.org/support/users/fauf2522/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/problems-with-multisite-wordpress-installation/#post-17868487)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
