Now, actually we're gonna have to create the database
first. So let's go to localhost/phpmyadmin
and just log in here with the same information that you
created in one of the previous videos there
about php myadmin
and just hit New and we're gonna create a new database. I'm gonna call it wp1
and hit create
and that's all we need to do in here.
So, on the wordpress installation just
go through it graphically
and
I'm gonna show you how to do it manually in a moment.
So the database name
is wp1.
The username, this is going to be the,
the information
for the
mySQL user
that we created when we set up mySQL so
this case it's root.
And the mySQL password.
One sec.
Actually used a pass right here that,
that I
used for some other things. So I'm gonna mask that here by using
the password type.
Hit Submit.
Can't create the wp-config.php file
so I'm gonna have to create it manually
and
after that we can Run the install. So just come back here to the
html directory
and in here there should be
wp-config-sample.php.
Basically we'll look at that in a second for right now I'm going to create
wp-config.php
I'm gonna open this with a text editor,
paste that in here, hit save,
get out of there now.
You should be good to Run the install.
So this Site Title is going to be
Nicks New Site.
Username, let's create a username here.
Password, I'm gonna copy this because I'm not gonna put it in when we log in,
and my email.
This is gonna take a few moments to do
but it should return with a success message in just a moment.
Here we go and that Save that password actually. Let's go log in.
And as you can see we've got a fully functioning
wordpress site
installed
on our Apache server. It's really that easy.
If I go to Hello world! here you're gonna see this really ugly
URL.
So let's take care of that.
So how we're gonna do that is by actually going into the
Dashboard and in Settings there's a Permalinks
setting page,
click on that
and here you can choose
different structures
for the URLs.
And so,
this one right here, the Post name that's the prettiest
and so that's what we're gonna use.
So let's save those changes
and actually the,
our ht access,
so this directory isn't rewrittable by the server
and that's because we have the server running under the user Apache 2 instead of
under our user and then the files in here in the directory is in our
html directory
is owned by our user and so what we're gonna have to do is change the user
that Apache is running at to match our user and then everything will be
fine.
The web server will be able to read and write all these files all now
but for right now it doesn't and so what we're gonna do is create
a new document.
We're gonna
call it .htaccess
and we're gonna open it with a text editor.
And what you need to do is basically copy this
over here
and
something that I noticed actually is that
this won't work usually. I'm gonna save this.
Save it.
I'm gonna save this right here
and if we refresh,
it's actually gonna work.
Alright.
Let me have a look here.
It's
opened.
Rewrite.
Okay,
so it will work actually.
Good stuff.
It was giving me a server error before
but
basically this line right here,
this RewriteRule
I had to remove it and then everything works so if you guys have problems
try removing that third line that says
RewriteRule ^index\php$ - [L].
Try removing that and everything should work fine
but we've now got a full Wordpress site set up with permalinks enabled and
you know from here I mean you can just go and you know
create your own pages, posts and stuff like that
from hit this point forward this is basically
just all Wordpress. So,
that's awesome.
I hope you guys enjoyed this video and found it
informative and we're gonna be going over
more Apache stuff in the next video.