Question

Docker Wordpress on Apache

Posted May 12, 2021 391 views
ApacheWordPressDockerUbuntu 18.04

I currently run a few virtual hosts on apache, none of these are Wordpress, all on a LAMP setup

I need to host a Wordpress site But do not want to buy another server as the one with existing sites is more than enough

My questions

Is adding docker Wordpress the best option
Is it ok to install the containers under my current structure, eg /home/sitename/public_html/ then install Wordpress etc here

Is there a link to best practice to do what Im doing

Thanks in advance

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hi there,

Running WordPress in a container is one option, but as you already have LAMP installed, you could just install the WordPress in a specific directory rather than containerizing it.

You can follow the steps from this video here starting at 06:30, it will show you how to download the WordPress files, create a new Apache virtual host, create a new MySQL database and user and install WordPress:

Let me know if you have any questions.
Regards,
Bobby