Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multisite Configuration on Linux App Service #183

Open
sanichol opened this issue Jan 18, 2023 · 1 comment
Open

Multisite Configuration on Linux App Service #183

sanichol opened this issue Jan 18, 2023 · 1 comment

Comments

@sanichol
Copy link

sanichol commented Jan 18, 2023

Hello! I just installed this image on a new Azure App Service and was configuring it for multiple sites.

It works great for my root site. I can add a second site, but unable to access it at all.

Here are my steps:

  1. Create a new App Service in Azure (linux)
  2. Login to the site to ensure it works.
  3. Open FTP cline and add define('WP_ALLOW_MULTISITE', true); to the wp-config.php.
  4. Restart App Service
  5. Log back into the site and go to tools -> Network Setup & follow the instructions
  6. Added these lines to my wp-config.php:
define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', false );
define( 'DOMAIN_CURRENT_SITE', 'mytempsite.azurewebsites.net' );
define( 'PATH_CURRENT_SITE', '/' );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );

(above the comment "/* That's all, stop editing! Happy blogging. */")
Note: this was the directory multisite and not the subdomain multisite.
7. Restart App Service again
8. Log in
9. The Network is setup and the second site is available (see below)
image

  1. Clicking on the second site results in the following error:
    image

What I've Tried:

  1. Looking into the Network setup, WordPress has detected an nginx config. However, when I ssh into the machine then run service nginx status I get:
  • status: stopped
  1. Tried starting the nginx config but I get the following output:
 * Starting nginx ...
2023/01/18 21:42:01 [emerg] 19674#19674: bind() to 0.0.0.0:80 failed (98: Address in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use)
2023/01/18 21:42:01 [emerg] 19674#19674: bind() to 0.0.0.0:80 failed (98: Address in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use)
2023/01/18 21:42:01 [emerg] 19674#19674: bind() to 0.0.0.0:80 failed (98: Address in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use)
2023/01/18 21:42:01 [emerg] 19674#19674: bind() to 0.0.0.0:80 failed (98: Address in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use)
2023/01/18 21:42:01 [emerg] 19674#19674: bind() to 0.0.0.0:80 failed (98: Address in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use)
2023/01/18 21:42:01 [emerg] 19674#19674: still could not bind()
nginx: [emerg] still could not bind()
 * start-stop-daemon: failed to start `/usr/sbin/nginx'
 * Failed to start nginx                                                                                                                                                                              [ !! ]
 * ERROR: nginx failed to start

Unsure how to proceed or what to try next.

Linking issue in another repo : https://github.com/Azure/app-service-quickstart-docker-images/issues/359

@sarahannnicholson
Copy link

sarahannnicholson commented May 4, 2023

For anyone looking for the result, there is now a checkbox in the WordPress on Azure App Service for multisite:
image

This issue can now be closed. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants