Detailed Notes
This series is a short set of tutorials on setting up a docker instance to run and develop your Wordpress installation.
Transcript Text
[Music] we want the all-in-one wordpress migration go install it we'll activate it all right it's now live we now have the all-in-one wordpress migration option here so it's going to import we're going to import from file now before we do this step there's something i want to point out the default maximum uploads file size for wordpress is 2 megabytes this is not going to work for most wordpress site import connector so we need to quickly update this file so the first thing we want to do is we want to go back out to our command line and we want to view our wordpress and the first thing i want to do is i want to come down to the bottom here this notes speed things up so we'll go down to the end of our file insert and paste in our new settings so we want to increase the upload max size flag to 128 megs our post max size 128 our memory limit 256 max execution time 300 and max input time of 300. save that and then we also not always but it's also good to add the same configuration to your ht access because depending upon the site that you're uh importing it may or may not read the configuration files from the config file they may be hard coded in the h ht access so you come in here or in between the begin wordpress and in wordpress we'll paste in these values so again same kind of values upload next file post memory limit and execution time save that and if we give it just a second refresh there we go real time there our max upload size just jumped to 128 meg so unlike virtual machines where you have to actually go start stop with containers if you set it up to restart on config file changes the moment you save the file boom the site is automatically updated next we'll import from file right here i have my watch consulting image that i did on july 3rd if i open that guy it will import it fairly small image but it does take a second or two to load see so it's kind of your last warning before it overwrites your database and you lose the current configuration you have that's still pranking it will come back over here and go to our sql tab so once this is finished depending upon what plugin tool you use to import and export your site you may still have to do one additional step and that will be to update your live url links to your localhost so what you'll need to do is you'll need to update you'll come out here refresh your connection and then you'll want to run these three queries so you'll want to run your update wordpress options wordpress post and post meta and you're going to want to replace the option or wordpress option the option value of your live site with localhost my localhost site and do the same thing for post content and metavalue just database selected oh yeah we'll reconnect there okay they ran and as you can see no rows were affected that's because the tool i used actually updated those for me that's one another reason why using the all in one tool is really good all right so we need to log in and now our login is not wordpress wordpress this is going to be the actual login for your site right and we're getting a connection refused error if we actually look at the details um there's been too many redirects or something going on so i run it ran into this a couple different times so the easiest way to fix this problem is first we want to go in to our configuration go back into our wordpress configuration file and at the bottom of our file add one additional settings change here and let's define our wordpress home to be our localhost 12002 and our wordpress site url to also be localhost 12002. the other thing you need to do is you need to come in here and go to your wordpress content folder and look for the plugins folder here and then we want to run the command move plugins and just essentially rename the folder to plugins disabled check that plugin is disabled so we have now disabled our plugins back out to our site go back to our container and wordpress click and there's my site my last consulting we're now live but we're live on localhost and because i disabled my plugins and i added that redirect we now have access to all of my content so essentially i've now ported my logic consulting to my local website or to my local machine or development and now i can make changes i can come in here and re-enable plugins as i need to and just try them out so we are kind of constrained on time now so i won't go into the extra piece that i had they'll probably take another 10-15 minutes but what i will do is i'll record that as kind of a bonus section uh that i'll upload with the uh blog post when i post it out there and into vimeo once we get it up there and it's essentially we'll walk you through how to export the containers that we just built here uh export this entire container set with the volume so that you can uh essentially either save this as a template and reuse this container image again and again or take that whole container with the image volume and then upload it to another uh container system via kubernetes to be a docker or amazon website so again we needed to make sure that we had the doctor community edition installed we had to have dr desktop docker compose and we installed the three services mysql php admin in wordpress anyone have any questions before we wrap up michael i just wanted to to get you to talk a little bit about a containerization with the prevalence of so many cloud technologies and one of the things that i have to be cognizant of at least i've been challenged to be cognizant of is um you know that if a business decides to move from aws to google um will our with our code port um you know we're using more lambda functions which are you know of course just the java that runs but of course we're using the hooks or the interfaces that aws provides meaning our code won't port can you talk a little bit about why containerization doesn't face that challenge i can but that's actually a very a longer discussion um let's let's table that and let me think on that a little bit i think that's actually a presentation in and of itself that that's that we have not touched on actually in previous uh container uh presentations that we have but that's a very good one to talk about so let me actually give that one um let me actually do a presentation on that and give it a good um kind of walk through on that because that's just something that i really think just a quick one two minute answer it's not going to be sufficient yeah that's one of those uh you know we way back we talked about the value for value kind of idea of contributing to the the greater good or cause and that is a perfect question for that as soon as you asked i was thinking the same thing it's like oh that's like that's a i think it'd be a very useful presentation would actually be to look at uh vms and containers and maybe even and we've we've touched on it but i don't think we've really had something we've really looked at comparing a little bit container technologies as well there's some different things there that um i think that's a that is an excellent um presentation topic maybe may go beyond two presentations but yeah i agree that's that's a really good question timothy and we definitely will bookmark it and come back around to it one way or another awesome thank you and that might actually be one at the end if you're you know if that really helps answer your question maybe you could kind of do a short presentation and kind of like lessons learned or what you kind of like real world here's what i'm working on or here's what we're dealing with kind of deal yeah awesome i'd love that um i'll tell you a little bit one of the challenges i've already seen is that you know we want to host um an angular site um in uh aws well there's the straight um you know upload your static site to s3 and host it that way but i found the ability to containerize our our angular app and deploy it anywhere that that seems just the best options that is just a really small use case but more to the larger point it would be nice to have a presentation certainly can provide some input on that certainly yeah no definitely and i think like i said i think what even rob said i think this will be a multiple part discussion because really that then starts getting into things like spring boot um and some like neutral container standardization that you can use so that you can port to different things like that like aws it's a good point yes sir any other questions with that thank you guys i appreciate your time and if you'd love to discuss any of these topic furthers you can send questions comments and suggestions to any of these methods you can reach us on email at info developer.com you can find us on the web at developernerd.com contact us we're also on youtube which you can read this wonderful url or just google us on youtube at developmenter and youtube or you can reach us on vimeo.com developernerd our goal is making every developer better have a wonderful day [Music] you
Transcript Segments
[Music]
we want the all-in-one
wordpress migration go install it
we'll activate it
all right it's now live we now have the
all-in-one wordpress migration option
here so it's going to import
we're going to import from file now
before we do this step there's something
i want to point out
the default maximum uploads file size
for wordpress is 2 megabytes this is not
going to work for most wordpress site
import connector
so we need to quickly update this file
so the first thing we want to do is we
want to go back out to our command line
and we want to view
our wordpress
and the first thing i want to do is i
want to come down to the bottom here
this
notes speed things up so we'll go down
to the end of our file
insert
and paste in our new settings
so we want to increase the upload max
size flag
to 128 megs
our post max size 128 our memory limit
256
max execution time 300 and max input
time of 300.
save that
and then we also
not always but it's also good to
add the same configuration to your ht
access because depending upon the site
that you're uh importing
it may or may not read the configuration
files from the config file they may be
hard coded in the h
ht access
so you come in here
or in between the begin wordpress and in
wordpress
we'll paste in these values so again
same kind of values
upload next file post
memory limit
and execution time
save that
and if we give it just a second
refresh
there we go real time there our max
upload size just jumped to 128 meg so
unlike virtual machines where you have
to actually go start stop with
containers if you set it up to restart
on config file changes the moment you
save the file boom the site is
automatically
updated next we'll import from file
right here
i have my watch consulting image
that i did on july 3rd
if i open that guy it will import it
fairly small image but it does take a
second or two to load
see
so it's kind of your last
warning before it overwrites your
database and you lose the current
configuration you have
that's still pranking it will come back
over here and go to our sql tab
so once this is finished depending upon
what plugin tool you use to import and
export your site you may still have to
do one additional step
and that will be to update your live url
links to your localhost
so what you'll need to do is you'll need
to update
you'll come out here
refresh your connection
and then you'll want to run these three
queries
so you'll want to run your update
wordpress options
wordpress post and post meta
and you're going to want to replace the
option
or wordpress option the option value
of your live site
with localhost my localhost site
and do the same thing for post content
and metavalue
just
database selected oh yeah
we'll reconnect there
okay they ran and as you can see no rows
were affected that's because the tool i
used actually updated those for me
that's one another reason why using the
all in one tool is really good
all right so we need to log in
and now
our login is not wordpress wordpress
this is going to be the actual login for
your site
right and we're getting a connection
refused error if we actually look at the
details
um
there's been too many redirects or
something going on
so i run it ran into this a couple
different times so the easiest way to
fix this problem
is first
we want to go in
to our configuration
go back into our wordpress configuration
file and at the bottom of our file
add one additional
settings change here
and let's define our wordpress home to
be our localhost 12002 and our wordpress
site url to also be localhost 12002.
the other thing you need to do
is you need to come in here and go to
your wordpress content folder
and
look for the plugins folder here
and then we want to run the command
move
plugins
and just essentially rename the folder
to plugins disabled
check that
plugin is disabled so we have now
disabled our plugins
back out to our site
go back to our container
and
wordpress click
and there's my site my last consulting
we're now live
but we're live on localhost
and because i disabled my plugins and i
added that redirect we now have access
to all of my content
so essentially i've now ported my logic
consulting
to my local website or to my local
machine or development
and now i can make changes i can come in
here and re-enable plugins as i need to
and just try them out
so we are kind of constrained on time
now so i won't go into the
extra piece that i had they'll probably
take another 10-15 minutes but what i
will do is i'll record that as kind of a
bonus section uh that i'll upload with
the
uh blog post when i post it out there
and into vimeo once we get it up there
and it's essentially we'll walk you
through how to export
the containers that we just built here
uh export this entire container set with
the volume
so that you can uh essentially either
save this as a template and reuse this
container image again and again
or take that whole container with the
image volume and then upload it to
another uh container system via
kubernetes to be a docker or amazon
website
so again we
needed to make sure that we had the
doctor community edition installed we
had to have dr desktop docker compose
and we installed the three services
mysql php admin in wordpress
anyone have any questions before we wrap
up
michael i just wanted to to get you to
talk a little bit about
a containerization
with the
prevalence of so many cloud technologies
and one of the things that
i have to be cognizant of at least i've
been challenged to be cognizant of is um
you know that if a business decides to
move from aws to google
um
will our with our code port
um you know we're using more lambda
functions which are you know of course
just the java that runs but of course
we're using the hooks or the interfaces
that aws provides meaning our code won't
port
can you talk a little bit about why
containerization
doesn't face that challenge
i can but that's actually a very a
longer discussion um
let's
let's table that and let me think on
that a little bit
i think that's actually a presentation
in and of itself that that's that we
have not touched on actually in previous
uh container uh presentations that we
have but that's a very good one to talk
about so let me actually give that one
um
let me
actually do a presentation on that and
give it a good
um
kind of walk through on that because
that's just something that i really
think just a quick one two minute answer
it's not going to be sufficient
yeah that's one of those uh you know we
way back we talked about the value for
value kind of idea of contributing to
the the greater good or cause and that
is a perfect question for that as soon
as you asked i was thinking the same
thing it's like oh that's like that's a
i think it'd be a very useful
presentation would actually be to look
at
uh vms and containers and maybe even and
we've we've touched on it but i don't
think we've really
had something we've really looked at
comparing a little bit container
technologies as well there's some
different things there that
um
i think that's a that is an excellent
um presentation topic maybe
may go beyond two presentations but yeah
i agree that's
that's a really good question timothy
and we definitely will bookmark it and
come back around to it one way or
another
awesome thank you
and that might actually be one at the
end if you're you know if that really
helps answer your question maybe you
could kind of do a short presentation
and kind of like lessons learned or what
you kind of like real world
here's what i'm working on or here's
what we're dealing with kind of deal
yeah awesome
i'd love that um i'll tell you a little
bit
one of the challenges i've already seen
is that you know we want to host um an
angular site
um
in uh aws well there's the straight um
you know upload your static site to s3
and host it that way
but i found the ability to
containerize our our angular app and
deploy it anywhere that
that seems just the best options that is
just a really small use case but
more to the larger point it would be
nice to have a presentation certainly
can provide some
input on that certainly
yeah no definitely and i
think like i said i think what even rob
said i think this will be a multiple
part discussion because really that then
starts getting into things like spring
boot um and some like
neutral container
standardization that you can use so that
you can port to different things like
that like aws
it's a good point yes sir
any other questions
with that thank you guys i appreciate
your time and if you'd love to discuss
any of these topic furthers you can send
questions comments and suggestions to
any of these methods
you can reach us on email at info
developer.com you can find us on the web
at developernerd.com
contact us we're also on youtube which
you can read this wonderful url or just
google us on youtube at developmenter
and youtube or you can reach us on
vimeo.com developernerd our goal is
making every developer better have a
wonderful day
[Music]
you