📺 Develpreneur YouTube Episode

Video + transcript

Debian 12 Getting Started - LAMP - WordPress

2023-11-09 •Youtube

Detailed Notes

This is a short series to help you get started on Debian 12 with a LAMP stack to install WordPress on our server. We continue from our Apache 2 install with PHP running and setup the database so we can launch and login to WrodPress. We wrap up with the WordPress installation and configuration.

You can learn more through our online classes at https://school.develpreneur.com and register for free. Registration will add you to our email list, and you will periodically receive coupons for courses and notifications of the latest releases.

Transcript Text
[Music]
well hello and welcome back uh last
episode we were working on building out
a lamp server in dbn 12 with the PHP
version
82.7 is actually where we're at and this
episode we're going to continue with
this and we're going to dig into to
putting together uh our database and
getting some of those pieces into place
now we have gotten uh we've got our
Basics up what I do want to do is I'm
going to get Maria DB
in and let me
do and let's see if I can get it all in
one
shot it's going to be our back end Maria
DB we could use just as we used our uh
my SQL but we're going to use Maria DB
this time around for our back
end and here we go so okay so let's see
authentication is required to start
multiple identities can be used for
authentication choose an identity to
authenticate I'm going to
do uh
both can I do one comma
two uh no okay said the last thing I
want
is uh here we
go okay so I'm going to go ahead and
just uh do it as I'll start it as
admin oh there is no password whoops so
I'm going to pass it as
me because I do have a
password there we go um synchronizing
same
thing uh
reload authenication
complete uh why
okay
there we go okay so we finally got
through all our little stuff Uh current
password for root I believe is
none um let's see second password using
nobody can log in without proper
authoriz enable unique socket
authentication
yes
whoops so we need the default
password so let's try this first uh root
okay so see
suu now if I just do my sequel
okay uh and I can do so I can come in as
root if I want to I create a user um
let's leave it at this first so who am I
uh who am I all right I'm rout so let's
go back
to uh so I've got my seat or Maria in uh
it's probably enabled and so I want to
do secure installation I think I can do
it just straight here there we go so
current password is none switch
to uh or using that a no we can log into
it without proper
authorization oh so I can safely answer
no okay uh so you can safely answer
no uh remove Anonymous users yes
disallow rout login remotely yes remove
the test databit yes reload privilege
table yes okay so now
so
um I'm not going to be able to log in as
root oh I guess I am okay I did get it
set
up so all right so I'll set up here
and uh where am I at okay so I'm on my
so I have my database configured so
now I can I go do uh get my
U let's see I want to
get I want to get data the WordPress
stuff well while I'm
here uh let's do
this I think I've got it all let's see
so I'm going to create a database for
WordPress
um and let
me let me save that
oh so here we go so that's my WordPress
[Music]
user I want to use that I think I
probably will well let's see we'll come
back to this um let's
do because we're going to restart it in
uh we're going to do with this within
WordPress so let's see WordPress
DV and I'm going to create a databas
well let me see let's go this
way so what I do need to do
is I'm going
to get the latest
WordPress first um I don't want to be
rude
wh let's make sure I've got who I am all
right back to my guys so I'm going to
get my
latest uh why
not oh I'm not in my home folder that's
why let's try that again okay so let's
get that cool now I can do that I can do
a gz-
d uh what was that call whatever I call
did I call latest
yes so I'm going to uncompress
it and
now I'm going to go
to my I go down to my rot HTR slash HTML
slash
okay so if I go
there oh
sorry R www HTML okay so now I've got
some B whop some Basics here and what I
want to do is I'm going to take all of
that I'm just going to dump it basically
here as like the WordPress piece um it's
a little different so what I want to do
let me do this first
is uh let me get my stuff done because I
think this may take a second or a minute
uh because what I want to do is I'm
actually going to make sure that I put
it at the right level which is probably
going to be not not exactly the root so
let me while I'm here while I'm waiting
for that let me go look over
here on another server okay cool he's
there and if I do AAR d xvf uh let me
before I do
that ex that might be a lot of
files if I go here let's
see see if I go to HTML
whoops then I want it to
be uh let's
see think I want to be here yeah
so what I really want to
do uh W oh
HTML
ww why do I reverse those I don't know
why I did but okay so what I'm going to
do is first because of what this is for
I want to make this oh I have to make
that
as a pseudo and then I'm going to change
it so now I can see that here I own that
so I go here I'm going to do make uh I'm
going to call this blog which is where
I'm going to put
WordPress just make sure I'm owning it
right
yep
now I'm going to do what I call that
latest
yep so now I'm going to blow out all of
the WordPress
stuff and now let's see what if I do
this if I go
to oh I have
WordPress here okay my mistake I'm going
to move everything down a
notch and I can remove move the
WordPress and now if I go back to
[Music]
here okay so I am missing the MySQL
extension so I need to get the MySQL I
okay so to do this let's go back
[Music]
here that means I am missing and maybe
I'm just missing my SQL I let's see if
I've got one some
somewhere I don't see it so I'm going to
just install it
anyways uh let's see where
is let's go
check let's make sure we got the right
one so if I
want looks like we failed to get the
right all of our PHP stuff earlier
so yes we do not have it so we're going
to do a uh who am I okay so I'm going to
do a pseudo appt
install PHP my SQL let's see if it gives
me the right
one okay um I probably have
to restart Pat
G2 okay let's see if I get it this
time there we go okay so now I need to
get some stuff set
up so I'm going to need a database name
username and password so what I want to
do is I could do it as that but I don't
want to oh which is cool okay good
that's what it was supposed to do pseudo
suu Min SQL there we go uh show database
is let's make sure okay so now what I
want to do is I'm going to use a
database that is one second let me see I
know I'm over here I will come back to
the mic in a
second I want to make sure I get my
database name right just because I'm
moving from another because I want to
keep it so this is going to
be it's going to be RB
BL and so now I've got my that is in
there so I've got RB blog is there now
I'm going to create a
user and the way we do that is I'm going
to give you the line and then I'm going
to go back and tweak it so that I can do
it properly it is uh let's
see let me create my user
first and when you do that is going to
be create user you're going to give it
the in here it's going to be local
[Music]
user at and that means it's going to be
on the local
machine oh local user is the name so I
want to do I'm sorry Local Host I'm
going to create just Rob as a database
user and then I'm going to do
identified by and I'm going to get a
password and this is going to be my
password into this so I'll be right back
after I do this so let me jump back in I
created my my user now what I need to do
is I need to Grant so I want to Grant
all
on uh let's see I think it's Grant all
privileges on star. Star
to and is it user I think it is I think
it is okay
to let's do Rob at localhost
and I think this will give me what I
need and then I want to do flush
privileges so I can get everything set
up there we go and so now I
should be able
to log in as Rob and see
stuff with my
password
okay so I can see RB blog so I'm going
to come in here and I can come back over
here and the database name is going to
be RB
blog uh username is going to be Rob
password
is uh Local Host I can keep it as WP I
think let me look at what I
had before
because I want to keep it sort of the
same so if I do
use I just show tables okay it was WP so
I kept that
before um let me do this
cuz there we
go so now I should be able to do this
see if it gets it
started uh let's see so I probably don't
have
the okay so the database name
is
blog username
Rob database host is
that and let's see if that works
there we
go okay so I need to create
this so I need my WP
config and I'm going to do this
here oh
because uh where
is does it allow me to read okay so I
want to do
this here so let's just
do
PHP we write
that and let's see is that readable
we're going to find out in second
second and here we go since we're going
to an R case uh we're going to move a uh
another site into this so we're just
going to do this we're just going to
call this uh well we'll do this we'll go
ahead and just put a name to
it uh username let's make it
Rob password I'm going to just make it a
password so you can make your password
whatever you be this is going to be your
um this will be your admin user um if
you don't already know uh let me do
this get my email set up
um I don't want to hide in search
engines indexing it because I'm going to
want to do that let's do wh and let's
gohe and try to install
WordPress it has been installed so now
if I go back to my
site I probably will see a yep there you
go and so now I have my web my
uh have my WordPress side up if I go to
WP admin and oh let's
see so I should be able there we go and
now I have installed WordPress so we've
got this working I have uh put the lamp
stack I've got that set up have
WordPress installed and uh the next
thing we're going to do is we're going
to say all right now that we have
WordPress let's go pull this stuff and
migrate from our our old WordPress
version to this new one if you have any
questions as always send an email to
info@ developer.com and we'll walk you
through this we're going to have scripts
uh we'll have the the script as much as
we can I think we can put it all in our
show notes so it won't get messed up as
far as any control characters anything
like that and uh you should be ready to
go so as you see you can knock this
thing out fairly quickly maybe a couple
adjustments you need to do depending on
your
uh your Linux version and of course if
you have a little bit different if you
have a different drro it's slightly
different but really not that much you
should be ready to go you can get this
thing up and going quickly uh as always
go out there and have yourself a great
day a great week we'll talk to you next
time well hello this is Rob from develop
andur building better developers and we
have a mastermind class that will be
starting or actually several Mastermind
classes starting in 2024 check us out at
technology Mastermind 2024 4.com we've
got all the information you need
including some pricing early bird
discounts up to 50% off but those are
things that you're going to have to act
soon there is an application process so
go ahead and sign up today thanks a
[Music]
lot
Transcript Segments
0

[Music]

16.56

well hello and welcome back uh last

18.72

episode we were working on building out

20.279

a lamp server in dbn 12 with the PHP

23.24

version

24.119

82.7 is actually where we're at and this

27.439

episode we're going to continue with

28.84

this and we're going to dig into to

30.199

putting together uh our database and

32.119

getting some of those pieces into place

34.96

now we have gotten uh we've got our

37.64

Basics up what I do want to do is I'm

40.719

going to get Maria DB

44.32

in and let me

47.239

do and let's see if I can get it all in

49.8

one

55.12

shot it's going to be our back end Maria

57.28

DB we could use just as we used our uh

59.96

my SQL but we're going to use Maria DB

62.28

this time around for our back

65.64

end and here we go so okay so let's see

69.28

authentication is required to start

71.479

multiple identities can be used for

73.2

authentication choose an identity to

75.68

authenticate I'm going to

77.64

do uh

82.119

both can I do one comma

87.2

two uh no okay said the last thing I

90.24

want

92.84

is uh here we

99.159

go okay so I'm going to go ahead and

101.28

just uh do it as I'll start it as

106.88

admin oh there is no password whoops so

110.56

I'm going to pass it as

113.439

me because I do have a

116.52

password there we go um synchronizing

121.2

same

128.84

thing uh

134.64

reload authenication

139.68

complete uh why

148.76

okay

152.16

there we go okay so we finally got

153.44

through all our little stuff Uh current

155.519

password for root I believe is

158.36

none um let's see second password using

162.12

nobody can log in without proper

163.599

authoriz enable unique socket

165.72

authentication

167.36

yes

170.08

whoops so we need the default

173.48

password so let's try this first uh root

178.36

okay so see

180.599

suu now if I just do my sequel

184.28

okay uh and I can do so I can come in as

188.44

root if I want to I create a user um

191.12

let's leave it at this first so who am I

194.64

uh who am I all right I'm rout so let's

198.239

go back

200.2

to uh so I've got my seat or Maria in uh

204.44

it's probably enabled and so I want to

206.4

do secure installation I think I can do

208.68

it just straight here there we go so

210.76

current password is none switch

214.28

to uh or using that a no we can log into

217.599

it without proper

220.319

authorization oh so I can safely answer

222.48

no okay uh so you can safely answer

227.519

no uh remove Anonymous users yes

231.4

disallow rout login remotely yes remove

235.56

the test databit yes reload privilege

237.76

table yes okay so now

241.239

so

243.4

um I'm not going to be able to log in as

246.72

root oh I guess I am okay I did get it

249.159

set

250.12

up so all right so I'll set up here

256.28

and uh where am I at okay so I'm on my

259.04

so I have my database configured so

264.919

now I can I go do uh get my

272.52

U let's see I want to

275.12

get I want to get data the WordPress

278.6

stuff well while I'm

283.96

here uh let's do

286.759

this I think I've got it all let's see

288.96

so I'm going to create a database for

291.24

WordPress

294.28

um and let

296.32

me let me save that

303.8

oh so here we go so that's my WordPress

306.39

[Music]

307.52

user I want to use that I think I

309.52

probably will well let's see we'll come

311.36

back to this um let's

314.36

do because we're going to restart it in

317.16

uh we're going to do with this within

318.68

WordPress so let's see WordPress

322.16

DV and I'm going to create a databas

325.24

well let me see let's go this

327

way so what I do need to do

330.6

is I'm going

333.639

to get the latest

337.639

WordPress first um I don't want to be

341.16

rude

342.6

wh let's make sure I've got who I am all

345.36

right back to my guys so I'm going to

346.4

get my

348.72

latest uh why

353.24

not oh I'm not in my home folder that's

356.44

why let's try that again okay so let's

358.72

get that cool now I can do that I can do

361.639

a gz-

365.16

d uh what was that call whatever I call

368.4

did I call latest

370.08

yes so I'm going to uncompress

373.199

it and

377.199

now I'm going to go

381.08

to my I go down to my rot HTR slash HTML

388.4

slash

390.039

okay so if I go

391.8

there oh

393.599

sorry R www HTML okay so now I've got

398.319

some B whop some Basics here and what I

400.68

want to do is I'm going to take all of

402

that I'm just going to dump it basically

404.039

here as like the WordPress piece um it's

409.199

a little different so what I want to do

411

let me do this first

416.44

is uh let me get my stuff done because I

421.84

think this may take a second or a minute

425.24

uh because what I want to do is I'm

426.44

actually going to make sure that I put

428.12

it at the right level which is probably

431.08

going to be not not exactly the root so

435.36

let me while I'm here while I'm waiting

436.84

for that let me go look over

438.919

here on another server okay cool he's

442

there and if I do AAR d xvf uh let me

446.479

before I do

447.919

that ex that might be a lot of

453.28

files if I go here let's

461.84

see see if I go to HTML

467.52

whoops then I want it to

473.919

be uh let's

477.159

see think I want to be here yeah

480.68

so what I really want to

484.56

do uh W oh

489.479

HTML

497.08

ww why do I reverse those I don't know

499.639

why I did but okay so what I'm going to

504.039

do is first because of what this is for

506.879

I want to make this oh I have to make

509.08

that

511.72

as a pseudo and then I'm going to change

518.44

it so now I can see that here I own that

523.24

so I go here I'm going to do make uh I'm

526.519

going to call this blog which is where

528.399

I'm going to put

530

WordPress just make sure I'm owning it

532.6

right

533.48

yep

536.56

now I'm going to do what I call that

538.92

latest

539.76

yep so now I'm going to blow out all of

541.24

the WordPress

544.16

stuff and now let's see what if I do

548.36

this if I go

555.64

to oh I have

559.279

WordPress here okay my mistake I'm going

563.079

to move everything down a

567.32

notch and I can remove move the

573.16

WordPress and now if I go back to

576.13

[Music]

578.839

here okay so I am missing the MySQL

582.48

extension so I need to get the MySQL I

585.959

okay so to do this let's go back

589.41

[Music]

591.279

here that means I am missing and maybe

595.959

I'm just missing my SQL I let's see if

598.48

I've got one some

601.8

somewhere I don't see it so I'm going to

604.279

just install it

607.04

anyways uh let's see where

613.8

is let's go

621.399

check let's make sure we got the right

623.48

one so if I

625.68

want looks like we failed to get the

629.519

right all of our PHP stuff earlier

633.519

so yes we do not have it so we're going

635.76

to do a uh who am I okay so I'm going to

639.959

do a pseudo appt

644.959

install PHP my SQL let's see if it gives

648.2

me the right

649.68

one okay um I probably have

657.32

to restart Pat

661.519

G2 okay let's see if I get it this

664.639

time there we go okay so now I need to

668.279

get some stuff set

669.6

up so I'm going to need a database name

672.079

username and password so what I want to

675.2

do is I could do it as that but I don't

679.92

want to oh which is cool okay good

683.12

that's what it was supposed to do pseudo

684.44

suu Min SQL there we go uh show database

689.2

is let's make sure okay so now what I

692

want to do is I'm going to use a

693.44

database that is one second let me see I

698.04

know I'm over here I will come back to

699.519

the mic in a

701.04

second I want to make sure I get my

703.079

database name right just because I'm

705.04

moving from another because I want to

706.44

keep it so this is going to

710.279

be it's going to be RB

715.519

BL and so now I've got my that is in

719.12

there so I've got RB blog is there now

720.8

I'm going to create a

722.2

user and the way we do that is I'm going

726.24

to give you the line and then I'm going

727.36

to go back and tweak it so that I can do

729.6

it properly it is uh let's

735.519

see let me create my user

738.36

first and when you do that is going to

740.519

be create user you're going to give it

742.639

the in here it's going to be local

745.09

[Music]

746.88

user at and that means it's going to be

749.12

on the local

750.839

machine oh local user is the name so I

753.44

want to do I'm sorry Local Host I'm

756.32

going to create just Rob as a database

762.839

user and then I'm going to do

765.68

identified by and I'm going to get a

769.399

password and this is going to be my

772.079

password into this so I'll be right back

775.279

after I do this so let me jump back in I

778.44

created my my user now what I need to do

781.48

is I need to Grant so I want to Grant

784.279

all

788.279

on uh let's see I think it's Grant all

792.959

privileges on star. Star

797.8

to and is it user I think it is I think

801.6

it is okay

803.48

to let's do Rob at localhost

814.92

and I think this will give me what I

817.24

need and then I want to do flush

819.279

privileges so I can get everything set

823.68

up there we go and so now I

827.36

should be able

829.68

to log in as Rob and see

833.399

stuff with my

837.759

password

841.759

okay so I can see RB blog so I'm going

843.56

to come in here and I can come back over

845.48

here and the database name is going to

848.04

be RB

850.8

blog uh username is going to be Rob

854.079

password

857.079

is uh Local Host I can keep it as WP I

863.279

think let me look at what I

866.199

had before

871.759

because I want to keep it sort of the

873.36

same so if I do

876.56

use I just show tables okay it was WP so

880.519

I kept that

881.639

before um let me do this

885.8

cuz there we

890.519

go so now I should be able to do this

893.56

see if it gets it

895.88

started uh let's see so I probably don't

899.959

have

903.959

the okay so the database name

907.8

is

912.959

blog username

921.36

Rob database host is

925.48

that and let's see if that works

929.319

there we

931.959

go okay so I need to create

941.36

this so I need my WP

946.48

config and I'm going to do this

951.88

here oh

957.12

because uh where

963.16

is does it allow me to read okay so I

966.56

want to do

967.92

this here so let's just

975.319

do

981.399

PHP we write

985.519

that and let's see is that readable

987.839

we're going to find out in second

989.839

second and here we go since we're going

993.399

to an R case uh we're going to move a uh

997

another site into this so we're just

998.319

going to do this we're just going to

999.399

call this uh well we'll do this we'll go

1001.36

ahead and just put a name to

1003.319

it uh username let's make it

1007.319

Rob password I'm going to just make it a

1011.04

password so you can make your password

1012.88

whatever you be this is going to be your

1015.079

um this will be your admin user um if

1018.759

you don't already know uh let me do

1023.36

this get my email set up

1028.439

um I don't want to hide in search

1031.24

engines indexing it because I'm going to

1032.679

want to do that let's do wh and let's

1035.039

gohe and try to install

1039.28

WordPress it has been installed so now

1043.36

if I go back to my

1047.4

site I probably will see a yep there you

1051.24

go and so now I have my web my

1055.16

uh have my WordPress side up if I go to

1057.88

WP admin and oh let's

1062.4

see so I should be able there we go and

1065.12

now I have installed WordPress so we've

1068.08

got this working I have uh put the lamp

1070.72

stack I've got that set up have

1073.24

WordPress installed and uh the next

1075.52

thing we're going to do is we're going

1076.6

to say all right now that we have

1077.919

WordPress let's go pull this stuff and

1080.799

migrate from our our old WordPress

1083.48

version to this new one if you have any

1085.96

questions as always send an email to

1088.159

info@ developer.com and we'll walk you

1091.679

through this we're going to have scripts

1093.159

uh we'll have the the script as much as

1094.96

we can I think we can put it all in our

1096.6

show notes so it won't get messed up as

1099.28

far as any control characters anything

1100.88

like that and uh you should be ready to

1103.08

go so as you see you can knock this

1104.559

thing out fairly quickly maybe a couple

1106.6

adjustments you need to do depending on

1108.08

your

1109

uh your Linux version and of course if

1111.12

you have a little bit different if you

1112.4

have a different drro it's slightly

1114.559

different but really not that much you

1116.559

should be ready to go you can get this

1117.76

thing up and going quickly uh as always

1120.36

go out there and have yourself a great

1121.48

day a great week we'll talk to you next

1125.4

time well hello this is Rob from develop

1128.039

andur building better developers and we

1130.2

have a mastermind class that will be

1131.919

starting or actually several Mastermind

1133.76

classes starting in 2024 check us out at

1136.52

technology Mastermind 2024 4.com we've

1139.679

got all the information you need

1140.799

including some pricing early bird

1142.76

discounts up to 50% off but those are

1145.4

things that you're going to have to act

1146.96

soon there is an application process so

1149.96

go ahead and sign up today thanks a

1154.29

[Music]

1167.24

lot