multisite deployment fails, but no log file generated
-
Hello all,
I'm trying to migrate to multisite, but am getting a server error. There is no log file under the wp-content directory even though I added the following to the wp-config.php:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
For starters, I added the following line to wp-config.php:
define('WP_ALLOW_MULTISITE', true);
Then, I went through the UI to Tools->Network Setup and did exactly what was listed.
I added the following lines to wp-config.php:
define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', false );
define( 'DOMAIN_CURRENT_SITE', 'mysite.com' );
define( 'PATH_CURRENT_SITE', '/' );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );
Then, I changed the contents of .htaccess to:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
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]
</IfModule>
I'm not entirely sure if the code should be within the if tags, but I've played with removing them. That did not make a difference.
I tried to load the site. I received the following:
Error: Server Error
The server encountered a temporary error and could not complete your request.
Please try again in 30 seconds.
Needless to say, waiting 30 seconds did not fix the issue.
I, then, combed through the database. I ran the following SQL stmts, but wound up making no changes, because I believe the result sets were correct:
select option_value from wp_options where option_name='siteurl';
https://mysite.com
select option_value from wp_options where option_name='home';
https://mysite.com
select domain from wp_site;
mysite.com
select meta_value from wp_sitemeta where meta_key='siteurl';
https://mysite.com/
select domain from wp_blogs;
mysite.com
I, then, double-checked to make sure that WP_HOME and WP_SITEURL are not defined in the wp-config.php. They were not defined.
I've even tried restarting the Apache server, even though I'm sure it's not needed. I ran the following:
sudo systemctl restart apache2.service
What have I missed? And why can I not find the log file?
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- You must be logged in to reply to this topic.