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

Multiple WP sites? #3

Open
adiegoweb opened this issue Dec 18, 2018 · 1 comment
Open

Multiple WP sites? #3

adiegoweb opened this issue Dec 18, 2018 · 1 comment

Comments

@adiegoweb
Copy link

Im trying to find a way to add another( or many) WordPress site. It seems that there is not an easy way to do it.
What I have thinked so far is:

  • Copy /etc/nginx/sites-available/default.vhost for the new sites and modify content accordingly
  • Create 2 new containers, 1 for MariaDB and 1 for PHP-FPM using a second yml file.
    But i get errors when creating the php fpm container

Cannot start service php-fpm: driver failed programming external connectivity on endpoint : Bind for 0.0.0.0:9000 failed: port is already allocated

Whats the best way to accomplish that (multiple WP instalations)?

@tspicer
Copy link
Contributor

tspicer commented Dec 18, 2018

Hi, I don't think spinning up more containers is the answer, it would consume additional resources.

There are a few things that would need to occur. First, you would need to create a unique WP database in MariaDB for each like wordpress, wordpress2....

You would also need to create seperate server blocks
/etc/nginx/sites-available/default.vhost
/etc/nginx/sites-available/default2.vhost

Each would need to be configured accordingly, including setting the root path

You would also need to install wordpress for each site.

Of course, you could also consider using Wordpress Multisite, but I'm not clear on tyour requriements so this might not be viable.

Also, while multi-site is possible, the current setup for the AMI is not setup to do this. It is certainly possible, but it would require understanding the requirements and then creating a different setup/install process.

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