Azure / wordpress-linux-appservice

MIT License
113 stars 71 forks source link

Unable to convert to multisite. #133

Closed samrueby closed 5 months ago

samrueby commented 10 months ago

Hello,

I followed the directions provided here to configure a Subdomain-based multisite. However, this appeared to have no effect. The installation is still not a multisite, as shown by navigating to /wp-admin/network/ and being presented with the message "Multisite support is not enabled.".

More specifically, I:

I am presented with my initialized WP instance. I can log into the backend. It is not a multisite.

Did I miss the window to configure this somehow?

rabollin commented 10 months ago

@ZubaeyrMSFT - Please review this issue and respond.

samrueby commented 9 months ago

@ZubaeyrMSFT your help would be greatly appreciated.

samrueby commented 9 months ago

Found the answer on an unrelated page:

Configurations that are used as a 'one-time' change and are applied just once. Any additional changes to these App Settings after the app has been deployed or configured won't re-configure or update your WordPress site.

The documentation I mentioned above make it sound like WordPress should be setup first and then WORDPRESS_MULTISITE_CONVERT configured.

ZubaeyrMSFT commented 9 months ago

Hello @samrueby,

Can you please email on wordpressonazure@microsoft.com? Please mention the following details too:

  1. App Service name.
  2. Are you using Azure Front Door?
  3. Can you see multisite configuration code block defined in wp-config.php? If so, please share the code block. It should look something like this:
define( 'WP_ALLOW_MULTISITE', true );
define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', true );
$base = '/';
define( 'DOMAIN_CURRENT_SITE', $http_protocol . $_SERVER['HTTP_HOST'] );
define( 'PATH_CURRENT_SITE', '/' );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );
  1. Share the contents of file /home/wp-locks/wp_deployment_status.txt file. You can view the file from SCM site of your App Service. (https://\<appname>.scm.azurewebsites.net/newui/webssh)

  2. Please re-check if you have mapped the custom domain and necessary sub-domains to your App Service: https://learn.microsoft.com/en-us/azure/app-service/app-service-web-tutorial-custom-domain?tabs=root%2Cazurecli

  3. If you are using AFD, please ensure you have mapped the custom domain to AFD endpoint instead of App Service. https://learn.microsoft.com/en-us/azure/frontdoor/standard-premium/how-to-add-custom-domain