This is a super short tutorial on how to get your wordpress setup running in a snap.
Things we need - a linux system in cloud(i chose ubuntu) with internet connectivity and ideally a domain name you have purchased
Step 1 : connect your cloud instance of linux to your domain. a super tutorial digitalocean, aws .Other setups are similar. check their help. Very soon - your domainname will start to point to an ugly page saying ‘page not found’. this is your success point (most likely)
Step 2 : ssh into your VPS/EC2 image
Step 3 : bang some commands
|
|
Step 4 : Now you have all needed to get the setup start.
just make sure you have docker and docker-compose and docker is running in daemon mode
sudo apt-get install docker docker-compose
Step 5 : The magic commands are
docker-compose build && docker-compose up
once this finishes .. you’ll see lots of logs and you can hit back to see your domain show the wordpress installation page instead of the page not found page.
This shall be it. But you need to get rid of the console and let the setup run
So once you’ve confirmed all is fine. do a Ctrl + C to shut the images down. and then again start using
docker-compose build && docker-compose start
start runs the same stuff in daemonized mode.
Also - you shall understand that what docker did was fetching all the installation necessary material from official images for installing
mysql, nginx and wordpress and phpmyadmin and then installed all those as per your suggested variable data (db name , password etc.) magical, no ?
actually the catch is that you still need to follow where those directories are linked in order to make changes to those directories. example - you’ll need to change permissions for the wp-content in order to copy themes into it. so it’s a short-cut, but you still shall be helped by gaining clarity with directory structure as you move along. But all this saves you from the deadline sword. Doesn’t it ?