Skip to content

Multisite Configuration on Linux App Service #183

@sanichol

Description

@sanichol

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions