﻿1
00:00:00,640 --> 00:00:06,310
Every server including local environments and live hosting servers on the internet works a little bit

2
00:00:06,310 --> 00:00:07,160
differently.

3
00:00:07,210 --> 00:00:13,310
And so this is an example of how WordPress could be installed manually using local by flywheel.

4
00:00:13,510 --> 00:00:19,180
Coming up in this chapter I'll show you how I installed WordPress manually using another local environment

5
00:00:19,180 --> 00:00:20,380
called Map.

6
00:00:20,590 --> 00:00:23,970
But you should follow along in whichever environment you have.

7
00:00:24,190 --> 00:00:27,810
You can refer back to this video later or follow along now.

8
00:00:27,880 --> 00:00:33,010
And in doing this you'll get a feel for how WordPress works and the way it connects the core files to

9
00:00:33,010 --> 00:00:34,060
the database.

10
00:00:34,330 --> 00:00:41,270
Let's go now I'm going to create a new WordPress installation in local by flywheel and I suggest you

11
00:00:41,270 --> 00:00:42,370
do the same.

12
00:00:42,410 --> 00:00:50,600
So I'm going to go ahead and log out of my practice site one close the tabs and I'm going to close that

13
00:00:50,600 --> 00:00:58,640
tab as well in my browser and I'm going to go back to local buy flywheel and just so that I don't work

14
00:00:58,640 --> 00:01:03,270
on this site instead I'm going to turn this site off.

15
00:01:03,320 --> 00:01:10,400
So practice site one is now turned off and I have a second one called practice site 2 that I've just

16
00:01:10,400 --> 00:01:13,640
installed using the plus button over here.

17
00:01:13,640 --> 00:01:20,560
And I did a very default installation with no changes at all and I called it practice site too.

18
00:01:20,760 --> 00:01:27,410
So stop the video if you like and hit the plus sign and set up a second site that we're going to do

19
00:01:27,410 --> 00:01:29,510
a manual installation on.

20
00:01:29,900 --> 00:01:33,060
Or you can just follow along here.

21
00:01:33,090 --> 00:01:40,440
The reason I use local by flywheel to create the installation first and then go ahead and change it

22
00:01:40,440 --> 00:01:48,780
so that I can use that environment to install WordPress manually is because it's just convenient local

23
00:01:48,780 --> 00:01:54,860
by flywheel sets up the config file so that it's already connected to the database.

24
00:01:54,930 --> 00:02:00,600
That way when we install WordPress manually We know that all the credentials are correct.

25
00:02:01,510 --> 00:02:09,000
Now let's first take a look at the file structure for this practice site to give you an open file explorer

26
00:02:09,010 --> 00:02:18,010
again and I'll go back to my local sites folder in my username under users on the main hard drive and

27
00:02:18,010 --> 00:02:23,590
I'll find practice site too and the app folder and the public folder.

28
00:02:23,770 --> 00:02:29,270
You can see that these are the files that are the Word Press Corps files.

29
00:02:29,440 --> 00:02:36,580
And like I mentioned in the last video if we go to WordPress dot org and we download this zip file and

30
00:02:36,580 --> 00:02:37,650
then unzip it.

31
00:02:37,720 --> 00:02:45,280
These are the exact files that will end up with from that zip file with the exception of the WP config

32
00:02:46,030 --> 00:02:48,860
file that was created from the sample.

33
00:02:49,090 --> 00:02:58,260
Let's open the WPE could fig dash sample that ph file in a text or a code editor.

34
00:02:58,270 --> 00:03:02,210
Now I have it open in my Adam code editor right here.

35
00:03:02,440 --> 00:03:09,150
And you can see that it's just got some default data for the database name and the user and the password

36
00:03:09,160 --> 00:03:14,230
and what the host name is which by default might be localhost.

37
00:03:14,230 --> 00:03:24,310
Now compare that to if I go back into the file structure and I open that W.P. config DUP file this file

38
00:03:24,490 --> 00:03:30,890
has been created by WordPress when local by flywheel installed it.

39
00:03:30,970 --> 00:03:32,080
So you can see the difference.

40
00:03:32,080 --> 00:03:36,280
The database name is local and the user name is root.

41
00:03:36,280 --> 00:03:40,190
The password is root and the host name is localhost.

42
00:03:40,540 --> 00:03:48,100
And also there are some salts or unique keys and phrases down here that we will set up in a later video

43
00:03:48,370 --> 00:03:52,100
when we do a manual installation in the next section.

44
00:03:52,240 --> 00:03:58,150
That's just to show you what you would get if you downloaded WordPress from WordPress dark instead of

45
00:03:58,150 --> 00:04:03,350
just downloading this and replacing it inside of my file structure.

46
00:04:03,370 --> 00:04:10,990
I'm just going to make the assumption that this is the file these are the same files and the W.P. config

47
00:04:11,980 --> 00:04:16,130
file is already set up for this server.

48
00:04:16,150 --> 00:04:21,910
However the main change that we're going to make so that we can go through the Wordpress installation

49
00:04:21,910 --> 00:04:29,620
process that manual installation process is that we're going to delete the database tables out of that

50
00:04:29,620 --> 00:04:32,390
database as we did in the last video.

51
00:04:32,530 --> 00:04:37,820
Click the database tab here and click add Mynor for this Web site.

52
00:04:38,140 --> 00:04:42,330
Now you can make sure you're in the right Web site up in the address bar of your browser.

53
00:04:42,340 --> 00:04:49,480
This one is my practice site to local and so I know I'm in the right database and what I'm going to

54
00:04:49,480 --> 00:04:52,420
do is look at all these database tables.

55
00:04:52,420 --> 00:04:53,590
There's 12 in total.

56
00:04:53,590 --> 00:04:59,130
And I'm going to click the check box at the top left which selects all those database tables.

57
00:04:59,470 --> 00:05:05,170
And then after that I'm going to come down here and click drop when I click a drop gives me a window

58
00:05:05,170 --> 00:05:10,480
that says Are you sure because this is going to delete all the tables out of the database but it's going

59
00:05:10,480 --> 00:05:13,280
to leave the database intact.

60
00:05:13,360 --> 00:05:16,270
We're just erasing an existing database.

61
00:05:16,270 --> 00:05:16,770
So I'll hit.

62
00:05:16,780 --> 00:05:17,640
OK.

63
00:05:17,710 --> 00:05:20,110
And now the message in admen or tells me OK.

64
00:05:20,160 --> 00:05:23,050
In this database there are no tables.

65
00:05:23,210 --> 00:05:27,450
So how are we going to get the tables back and get this working.

66
00:05:27,490 --> 00:05:37,060
If I go right now to local buy flywheel with the empty database and I click say View site and I click

67
00:05:37,060 --> 00:05:39,340
View say here we go.

68
00:05:39,340 --> 00:05:48,330
Now the Wordpress files are in place and the Word Press W.P. config file is correct.

69
00:05:48,340 --> 00:05:51,390
It's actually communicating with the database correctly.

70
00:05:51,400 --> 00:05:57,150
The reason I know that is because this is the first step of setting up WordPress manually.

71
00:05:57,580 --> 00:06:03,340
So now I'm going to go through this process which is a script they use called the famous five minute

72
00:06:03,340 --> 00:06:05,270
WordPress install process.

73
00:06:05,410 --> 00:06:11,410
Now so many hosts and local environments install WordPress automatically that you may not have to go

74
00:06:11,410 --> 00:06:17,080
through this process very often but choose your language and click continue.

75
00:06:17,380 --> 00:06:23,290
And now since we're already connected to the database it just needs a little bit of information about

76
00:06:23,440 --> 00:06:25,600
what the word press is going to entail.

77
00:06:25,600 --> 00:06:31,480
It's going to create the first user and we'll choose our password as well.

78
00:06:31,480 --> 00:06:37,240
And this is the welcome message Welcome to the famous five minute WordPress installation process.

79
00:06:37,330 --> 00:06:39,010
And so let's see.

80
00:06:39,010 --> 00:06:44,580
I'm going to call this practice site too so I can define know which one it is.

81
00:06:44,670 --> 00:06:51,840
I use my standard username and then I'm going to choose a password that I know I'll be able to remember.

82
00:06:51,940 --> 00:06:53,380
It doesn't have to be that

83
00:06:55,870 --> 00:07:00,730
difficult or that strong of a password since this isn't a public facing Web site.

84
00:07:00,970 --> 00:07:03,180
Nobody can access this on the web.

85
00:07:03,280 --> 00:07:05,800
And then there needs to be an email address

86
00:07:11,650 --> 00:07:13,190
for each user account.

87
00:07:13,450 --> 00:07:18,410
And then you can choose discouraging search engine visibility on a live server.

88
00:07:18,460 --> 00:07:23,710
You might do that in order to develop the site or hide it behind a maintenance screen.

89
00:07:23,860 --> 00:07:30,640
In either case you don't need to check that box and I'll click install Wordpress and I can save that

90
00:07:30,640 --> 00:07:32,170
username and password again.

91
00:07:32,170 --> 00:07:33,500
And that was it success.

92
00:07:33,520 --> 00:07:40,000
WordPress has been installed so I can click the logon button which brings me to that standard log in

93
00:07:40,000 --> 00:07:45,350
page log in with the username and password that I had the browser remember.

94
00:07:45,370 --> 00:07:47,310
And here we are our practice site 2.

95
00:07:47,590 --> 00:07:50,000
And I can right click.

96
00:07:50,060 --> 00:07:57,190
Visit site and open that new tab and I have my standard default fresh and clean WordPress installation.

97
00:07:57,250 --> 00:07:58,300
Ready to go.

98
00:07:58,360 --> 00:08:05,560
Now let's take a look at the database that's still open and let's just refresh the page and you could

99
00:08:05,560 --> 00:08:08,480
see that all the database tables are back.

100
00:08:08,650 --> 00:08:12,800
Let's just verify under W.P. options and select data.

101
00:08:13,090 --> 00:08:13,550
Yeah.

102
00:08:13,570 --> 00:08:20,960
There's the practice site to local same Yoro that I have up here and so that worked for me.

103
00:08:20,980 --> 00:08:30,040
The quick quick quick WordPress five minute installation process and that's how we do it in the next

104
00:08:30,040 --> 00:08:30,690
sections.

105
00:08:30,700 --> 00:08:37,390
You'll see that I teach you how to install WordPress manually using the map local development environment

106
00:08:37,810 --> 00:08:44,230
and I've added this local by a flywheel system in ahead of that because I find that it's much easier

107
00:08:44,230 --> 00:08:49,900
and it loads and works faster on my browser than map does.

108
00:08:49,900 --> 00:08:55,870
But follow along if you like you can continue to use local by flywheel instead of map and in the next

109
00:08:55,870 --> 00:09:00,760
sections take what you need out of the video lesson's.

110
00:09:00,940 --> 00:09:06,670
In this lesson I showed you how you can use local by flywheel to experiment with installing WordPress

111
00:09:06,670 --> 00:09:07,750
manually.

112
00:09:07,750 --> 00:09:13,240
It's a good exercise just to get familiar with how WordPress works to connect the files to the database

113
00:09:13,870 --> 00:09:14,770
in the future.

114
00:09:14,770 --> 00:09:20,950
You can feel free to rely on auto installers in local or at your hosting company to install WordPress

115
00:09:21,040 --> 00:09:23,570
automatically in the next video.

116
00:09:23,620 --> 00:09:28,630
We'll explore different types of hosting environments for Wordpress including another local development

117
00:09:28,630 --> 00:09:33,120
environment called Map if local by flywheel is working well for you.

118
00:09:33,190 --> 00:09:37,450
Feel free to just follow along with the map lessons but keep using local instead.

