Changed singlesite to multisite, but new site shows Maintenance
Found it!!! /etc/apache2/sites-available/example.com.conf needs this line: ServerAlias *.example.com (The star was missing! – Merry Xmas)
Found it!!! /etc/apache2/sites-available/example.com.conf needs this line: ServerAlias *.example.com (The star was missing! – Merry Xmas)
Thanks to helpful prodding from TheDeadMedic, I see my problem is caused by my own application environment, which I failed to provide in the question because I didn’t think it was relevant. Sorry about that! I usually do briefly describe the environment when posting a question, but it has never been relevant before, so I … Read more
I finally got this sorted. During setup using the installer for cpanel, I had to choose the option to install on my domain WITHOUT www. I was just leaving the default setting which used www and it was causing some issues.
After posting the question, I did a ton of googles, and eventually built a plugin that displays all media for all subsites in a multisite installation. If the user is SuperAdmin, each picture is linked to it’s editing page. The plugin is called ‘Multiside Media Display’, and available via the usual Add Plugins page in … Read more
switch_to_blog($blog_id); still writing to main blog
Point the subdomain to the same directory as the main site, and define different settings in your wp-config.php per $_SERVER[‘HTTP_HOST’]: Example from my local setup: switch ( $_SERVER[‘HTTP_HOST’] ) { case ‘zzl.dev’: $table_prefix = ‘zzl_’; $table_name=”zzl”; break; case ‘wpbuch.dev’: $table_prefix = ‘wpbuch_’; $table_name=”wpbuch”; break; default: $table_prefix = ‘wp_’; $table_name=”wpdev”; break; } $sub = ‘/wp-content/’ . … Read more
You need to install this plugin to activate the setting: Activate Update Services Now you can see the “Update Services” setting from your subsite directly. Hope this will help you and others.
Styles not being applied to multisite setup
You need to change define(‘SUBDOMAIN_INSTALL’, true); to define(‘SUBDOMAIN_INSTALL’, false); to start with. Maybe you need to modify you .htaccess file as well. For more info the WordPress codex has a lot of info: https://codex.wordpress.org/Multisite_Network_Administration
In order for sub-directory multi-site to work, it needs to modify the mod_rewrite rule (i.e. .htaccess file). Do you simply added the two lines in the wp_config.php or crated a WordPress network as described here?