Multiple WP sites?
adiegoweb opened this issue · 1 comments
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)?
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.