-
Notifications
You must be signed in to change notification settings - Fork 513
Open
Description
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:
- Create a new App Service in Azure (linux)
- Login to the site to ensure it works.
- Open FTP cline and add
define('WP_ALLOW_MULTISITE', true);
to thewp-config.php
. - Restart App Service
- Log back into the site and go to tools -> Network Setup & follow the instructions
- 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)
What I've Tried:
- 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
- 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
Labels
No labels