1 00:00:00,700 --> 00:00:05,050 All right, everybody, welcome back to another third Cup series. 2 00:00:05,410 --> 00:00:12,760 This is a certified Kotlin Tester module on installing lamp on Kelly Lenox. 3 00:00:14,830 --> 00:00:16,570 Which LAMP stands for? 4 00:00:16,570 --> 00:00:20,710 Linux, Apache, my studio and PHP. 5 00:00:25,870 --> 00:00:26,620 This is our. 6 00:00:27,730 --> 00:00:29,350 Table of contents are outlined. 7 00:00:29,360 --> 00:00:32,710 We're talking about what makes a web server, what exactly is a lamp stack? 8 00:00:33,100 --> 00:00:35,380 We're going to talk about components of a web server. 9 00:00:35,860 --> 00:00:40,470 We'll get into installing Apache, installing my SQL Server. 10 00:00:42,080 --> 00:00:50,930 We'll get into installing PB and node JavaScript and being able to run your first web page as well from 11 00:00:50,930 --> 00:00:51,800 the local machine. 12 00:00:53,120 --> 00:00:54,140 This is our flow. 13 00:00:54,470 --> 00:00:55,820 Start off with the web server. 14 00:00:57,260 --> 00:01:03,020 Material will work into installing each of the components in series. 15 00:01:04,250 --> 00:01:05,240 So what is a web server? 16 00:01:05,300 --> 00:01:11,960 The programs that run over the web request, the server files which create web pages to users and respond 17 00:01:11,960 --> 00:01:12,620 to requests. 18 00:01:13,270 --> 00:01:15,410 So the response gets sent through a computer's. 19 00:01:16,760 --> 00:01:17,780 Internet connection. 20 00:01:17,900 --> 00:01:21,290 And that's usually done over HTP or HTTPS. 21 00:01:21,650 --> 00:01:24,140 There's many kinds of web servers. 22 00:01:25,220 --> 00:01:28,400 Generally, we're using Apache if it's on the Internet. 23 00:01:29,000 --> 00:01:33,770 If we're talking about Microsoft Windows, then there's Internet and information services. 24 00:01:34,010 --> 00:01:39,290 Or I guess an Engine X is one of the new players that's designed to. 25 00:01:41,410 --> 00:01:44,050 And to try and be a direct competitor to Apache. 26 00:01:45,460 --> 00:01:52,900 The Web servers often come as part of the larger part of the Internet, and their protocols and platforms 27 00:01:52,900 --> 00:01:59,110 are how we get things like email, how we pull down websites, how we watch videos online. 28 00:01:59,110 --> 00:02:00,130 We stream media. 29 00:02:00,580 --> 00:02:01,480 That's all done. 30 00:02:02,630 --> 00:02:03,710 From Webster's. 31 00:02:11,750 --> 00:02:13,430 So let's talk about a lamp stack. 32 00:02:13,430 --> 00:02:19,190 So a lamp stack is really a set of open source software that can be used to create websites. 33 00:02:20,860 --> 00:02:25,230 So each component goes together to form a platform. 34 00:02:25,240 --> 00:02:33,440 So you have a Linux operating system like calling Linux or Ubuntu or through say Linux or CentOS. 35 00:02:33,760 --> 00:02:40,150 Then you typically have the Apache Web server and then you have the open source. 36 00:02:40,150 --> 00:02:44,620 MySchool database school stands for Structure Grade Language. 37 00:02:45,040 --> 00:02:51,670 It's a relational database system, which means that there's tables of information that have relations 38 00:02:51,670 --> 00:02:52,300 to each other. 39 00:02:52,300 --> 00:02:56,380 And my school is just one type of relational database. 40 00:02:56,390 --> 00:02:57,810 There are others like PostgreSQL. 41 00:02:59,150 --> 00:03:01,250 There's Microsoft, Zico and many others. 42 00:03:04,950 --> 00:03:10,530 And then lastly, we have the programming language that lives on the top of the web pages and the web 43 00:03:10,530 --> 00:03:10,980 server. 44 00:03:12,400 --> 00:03:21,400 The Web server usually has the old days of web 1.0 content was largely static read only things. 45 00:03:21,790 --> 00:03:28,120 You would go out to a web server, you would make a request, and the server would send back the information 46 00:03:29,170 --> 00:03:30,160 a short time later. 47 00:03:30,490 --> 00:03:37,810 So now if you think about the Web, the way it works today, we have Gmail, we have Dropbox, we have 48 00:03:37,810 --> 00:03:39,220 YouTube, we have Facebook. 49 00:03:39,580 --> 00:03:43,210 Everything interactive on the Web has to go through some type of Web server. 50 00:03:44,820 --> 00:03:48,630 So the web server has typically a Linux kernel. 51 00:03:48,630 --> 00:03:51,450 It has some hardware that it runs on and that. 52 00:03:52,530 --> 00:03:58,920 Colonel will have various components like the firewall, maybe SD Linux. 53 00:04:01,400 --> 00:04:07,880 A network interface card and then of course different kernel modules and then you'll have the web cache, 54 00:04:07,880 --> 00:04:10,940 front end like squid or something like that. 55 00:04:10,940 --> 00:04:15,980 And that web server will that will be serving up the web page and then there'll be a scripting language 56 00:04:15,980 --> 00:04:18,680 like Perl, BHP or Python. 57 00:04:18,680 --> 00:04:21,680 So lamp can mean many different things, but. 58 00:04:23,850 --> 00:04:27,740 It kind of works very similarly to other implementations. 59 00:04:27,750 --> 00:04:29,460 So what are the components? 60 00:04:29,460 --> 00:04:33,000 You've got your Apache Web service, your web language. 61 00:04:33,000 --> 00:04:34,560 So set it the application layer. 62 00:04:34,860 --> 00:04:40,050 Then you've got your hosting, your your firewall, your IDs. 63 00:04:40,410 --> 00:04:42,090 And lastly, your operating system. 64 00:04:44,510 --> 00:04:49,880 So let's look at installing Apache on Linux in our case. 65 00:04:53,780 --> 00:04:58,040 We've already got it installed, but we'll go ahead and go through the process. 66 00:05:01,560 --> 00:05:02,820 Go ahead and log in here. 67 00:05:24,180 --> 00:05:26,560 And we would do a pseudo war already route. 68 00:05:27,390 --> 00:05:29,380 Afghans are patchy too. 69 00:05:30,690 --> 00:05:32,280 We'll see that it's already installed. 70 00:05:32,280 --> 00:05:36,930 We have 2.4. 43.1 version installed. 71 00:05:38,620 --> 00:05:44,250 And of course, you want to make sure that your system is fully up to date. 72 00:05:44,260 --> 00:05:48,340 So you want to do a sudo apt get update as well. 73 00:05:49,730 --> 00:05:54,590 Way to make sure you have all the latest versions of the software from the various repositories. 74 00:05:56,380 --> 00:05:56,740 Even. 75 00:05:57,990 --> 00:05:59,070 In a short amount of time. 76 00:05:59,400 --> 00:06:00,660 A small update there. 77 00:06:00,780 --> 00:06:07,980 So let's go ahead and clear the screen and we're going to go ahead and start the Apache two service. 78 00:06:14,940 --> 00:06:17,560 Let's check on the status and make sure it's actually running. 79 00:06:18,430 --> 00:06:19,140 And there we go. 80 00:06:19,150 --> 00:06:20,590 We can see that's in fact, running. 81 00:06:22,620 --> 00:06:30,240 So if you want to start or restart or stop the server, you can do this command service restart. 82 00:06:33,440 --> 00:06:34,190 Our knowledge. 83 00:06:34,190 --> 00:06:34,920 That's the name. 84 00:06:34,920 --> 00:06:36,320 And you can do. 85 00:06:41,540 --> 00:06:49,550 If I could type properly we would get this done service Apache to restart and then okay we close the 86 00:06:49,550 --> 00:06:57,050 screen again and let's do service Apache to stop. 87 00:06:58,850 --> 00:07:02,610 And notice we can press the up arrow. 88 00:07:02,630 --> 00:07:08,010 We can see the status and see that it's loaded, but it's currently inactive or dead. 89 00:07:08,780 --> 00:07:14,300 So let's go ahead and start it up again because we want the website to run. 90 00:07:14,720 --> 00:07:16,040 We want it to be a and well. 91 00:07:17,900 --> 00:07:19,610 And let's open up a web browser. 92 00:07:21,410 --> 00:07:24,710 Anyone to go to that local house for Haiti. 93 00:07:25,460 --> 00:07:26,780 And so we're going to see. 94 00:07:28,140 --> 00:07:31,980 That our first Web page is going to look something like this. 95 00:07:36,560 --> 00:07:37,940 You had minimized this. 96 00:07:39,660 --> 00:07:41,040 Go to our web browser. 97 00:07:44,500 --> 00:07:46,690 In this case, we'll just go with whatever the default is. 98 00:07:47,470 --> 00:07:53,230 The local host call an 80 and there's our default Apache page. 99 00:07:54,230 --> 00:07:58,220 Obviously some information about where the the location of the files are at. 100 00:07:58,730 --> 00:08:03,860 We can see that Apache has the Web pages in the bar slash that we did every day. 101 00:08:04,910 --> 00:08:06,320 So let's go ahead and change. 102 00:08:09,230 --> 00:08:11,600 So this is where your websites are going to go. 103 00:08:14,900 --> 00:08:22,130 So right now it's serving up the index that HDMI out, which you can edit with a text editor or you 104 00:08:22,130 --> 00:08:23,150 can edit it with other things. 105 00:08:23,150 --> 00:08:26,540 But this is the page that it's currently serving out. 106 00:08:33,620 --> 00:08:35,420 Go ahead and close this. 107 00:08:37,460 --> 00:08:37,820 All right. 108 00:08:38,150 --> 00:08:40,610 So obviously, if you want to change that. 109 00:08:43,680 --> 00:08:49,140 You have to do either creative change or you could actually take that page out if you didn't want it 110 00:08:49,140 --> 00:08:50,130 to be shown at all. 111 00:08:51,370 --> 00:08:53,320 So now we have a functioning web server. 112 00:08:53,950 --> 00:08:57,070 So let's go ahead and install my SQL Server. 113 00:09:01,150 --> 00:09:06,630 So we're going to open up the terminal and clear the screen again. 114 00:09:10,670 --> 00:09:13,260 Let me go ahead and zoom in a little bit more. 115 00:09:13,280 --> 00:09:15,620 So it's a little bit easier to see. 116 00:09:23,350 --> 00:09:23,580 Right. 117 00:09:31,270 --> 00:09:31,850 All right, go. 118 00:09:35,450 --> 00:09:38,540 We don't need a pseudo going change back to the home directory. 119 00:09:42,620 --> 00:09:49,670 So Afghan install -12 dash server and that server is not available but is referred to by and in the 120 00:09:49,670 --> 00:09:50,390 package now. 121 00:09:50,840 --> 00:09:55,130 This does happen from time to time. 122 00:09:56,280 --> 00:09:57,240 So what we'll do? 123 00:09:59,460 --> 00:10:01,110 So go ahead and go to our. 124 00:10:05,210 --> 00:10:06,140 My sequel. 125 00:10:09,650 --> 00:10:10,700 Documentation. 126 00:10:11,680 --> 00:10:14,290 You can always go to one to. 127 00:10:17,030 --> 00:10:22,190 You can actually go get a fresh copy of my school. 128 00:10:23,180 --> 00:10:24,770 You can build it from source. 129 00:10:28,410 --> 00:10:32,730 But the recommended way is to get the repository. 130 00:10:34,930 --> 00:10:39,430 So you can get my single workbench if you want the client libraries. 131 00:10:42,600 --> 00:10:43,740 So you could do. 132 00:10:48,640 --> 00:10:51,850 An apt yet build dependency of my SQL Server. 133 00:10:54,070 --> 00:10:57,670 Or you could just download the the file the binary straight from them. 134 00:10:58,120 --> 00:10:58,600 It is. 135 00:11:00,220 --> 00:11:02,230 Possible to work with the minus. 136 00:11:03,370 --> 00:11:12,670 So in newer versions of Cowley and also one to us while they started replacing last school with Maria 137 00:11:12,670 --> 00:11:13,230 Deeb. 138 00:11:14,460 --> 00:11:16,920 Which is actually a fork of my ask you all. 139 00:11:17,640 --> 00:11:23,430 So let's go ahead and do App Desk and install red web server. 140 00:11:24,100 --> 00:11:30,960 The command is basically the same thing, but it's going to download in my ask you all database and 141 00:11:30,960 --> 00:11:34,530 we now have the server and since we have the server. 142 00:11:37,250 --> 00:11:38,120 We can go at. 143 00:11:39,630 --> 00:11:40,860 Do a start up. 144 00:11:41,190 --> 00:11:44,280 My school has something called the secure installation. 145 00:11:45,210 --> 00:11:50,880 Essentially, it's not mandatory that you set a password for the user for start out, but for security 146 00:11:50,880 --> 00:11:52,560 practices you definitely want to do that. 147 00:11:56,890 --> 00:11:57,790 So let's go ahead. 148 00:11:57,790 --> 00:12:00,400 And you look at the start menu. 149 00:12:00,400 --> 00:12:06,790 And Kelly, if you go down to usually applications and under system, there's actually a. 150 00:12:09,630 --> 00:12:14,010 Usually that's where the sequel would be, but in the new version, they've changed it and they've actually 151 00:12:14,010 --> 00:12:18,270 replaced that in in a school like database browser. 152 00:12:19,850 --> 00:12:23,540 So if you want to look at databases like those that would be stored on. 153 00:12:25,860 --> 00:12:27,750 Mobile phones or things like that. 154 00:12:28,140 --> 00:12:28,470 But. 155 00:12:33,130 --> 00:12:38,260 You know, for the sequel database, they'll have to just work with. 156 00:12:44,030 --> 00:12:46,730 The my cycle service is actually stopped right now. 157 00:12:47,030 --> 00:12:48,890 So we're going to go ahead and do service. 158 00:12:55,560 --> 00:12:56,760 We're going to go ahead and start it. 159 00:13:03,870 --> 00:13:05,280 And we see it's now running. 160 00:13:05,760 --> 00:13:07,890 It's actually doing some tasks. 161 00:13:08,790 --> 00:13:10,080 This is the sequel. 162 00:13:12,010 --> 00:13:12,640 Service. 163 00:13:13,690 --> 00:13:16,270 Which is actually running from the R&B database. 164 00:13:16,690 --> 00:13:23,140 So what we can do now, now that we have our we have Linux, we have our Apache, we have our my ask 165 00:13:23,140 --> 00:13:23,590 you out now. 166 00:13:23,590 --> 00:13:26,110 We're going to get our PHP set up. 167 00:13:31,620 --> 00:13:34,500 So we're going to do a Sudoku first. 168 00:13:34,830 --> 00:13:46,980 Let's go ahead and check the latest version of free on the website, because it does does change periodically. 169 00:13:46,980 --> 00:13:51,390 So it's always good to get the latest version. 170 00:14:06,950 --> 00:14:16,700 And so for free, generally, you have to it does not show up in the national repository. 171 00:14:18,860 --> 00:14:21,200 So I'm going to say 7.4, which is the latest. 172 00:14:21,560 --> 00:14:26,480 And it actually does show up in the repository, if just by for some reason it doesn't. 173 00:14:26,930 --> 00:14:32,600 Then you might have to actually add the pre repository. 174 00:14:35,750 --> 00:14:37,490 But if for some reason it does not. 175 00:14:40,070 --> 00:14:40,970 Get updated. 176 00:14:41,720 --> 00:14:44,960 If you're on an older version of Kelly, you may not have this option. 177 00:14:47,790 --> 00:14:49,140 And you might have to add the. 178 00:14:51,560 --> 00:14:54,050 Trusted packages are appropriate in this case, we add. 179 00:14:54,380 --> 00:14:55,070 So we're going to go ahead. 180 00:14:55,190 --> 00:14:55,760 Yes. 181 00:14:56,300 --> 00:14:59,870 And we'll let that go through and do its installation. 182 00:14:59,870 --> 00:15:02,000 It's created some configuration files. 183 00:15:09,380 --> 00:15:16,370 And then once we're done, we're going to verify that GHB is actually installed. 184 00:15:18,470 --> 00:15:22,130 So free dash version, we could see around 7.4, 0.5. 185 00:15:25,200 --> 00:15:27,750 And we can also add modules to it if we need to. 186 00:15:28,330 --> 00:15:36,240 Let's go ahead and go look in the order that we have a HTML folder and let's see if 187 00:15:40,170 --> 00:15:42,000 the PHP info page is there. 188 00:15:54,360 --> 00:16:01,790 So we're going to go ahead and basically create a free info file in this directory, sort of like you 189 00:16:02,430 --> 00:16:08,460 do nano or we can -- whatever info dot P of course from respective. 190 00:16:08,460 --> 00:16:09,990 This is not always a good practice. 191 00:16:10,440 --> 00:16:12,450 So we're going to go ahead and put this on here anyway. 192 00:16:12,900 --> 00:16:16,740 We're going to call B, I call the B info. 193 00:16:18,810 --> 00:16:22,110 Function for the semicolon to close off the function. 194 00:16:22,510 --> 00:16:26,310 There are going to be the question mark and agree to that sign. 195 00:16:27,000 --> 00:16:27,900 And they are going to. 196 00:16:29,580 --> 00:16:33,330 Write this out and vote up PHP. 197 00:16:35,490 --> 00:16:40,890 Now we're going to exit and now we've got our info file there. 198 00:16:41,520 --> 00:16:42,900 So what we can do now? 199 00:16:44,460 --> 00:16:48,120 The fee actually stands for hypertext preprocessor. 200 00:16:48,540 --> 00:16:49,530 So that means that it can. 201 00:16:50,600 --> 00:16:57,560 It's an HTML embedded web scripting language, so you can insert CHP code into the website and have 202 00:16:57,560 --> 00:16:59,900 it do interesting things. 203 00:17:01,390 --> 00:17:08,110 So in most cases you're going to want to modify the way Apache serves up files when it requests directory. 204 00:17:16,820 --> 00:17:19,850 So we can type the following command. 205 00:17:25,520 --> 00:17:27,950 And then below the screen so you guys can see this. 206 00:17:28,530 --> 00:17:35,420 Want to go ahead and do Nano at the Apache two? 207 00:17:36,050 --> 00:17:38,330 That's where Apache two folder is located. 208 00:17:38,870 --> 00:17:42,260 Was enabled slash the air ducts. 209 00:17:42,500 --> 00:17:46,940 And now we're gonna go down here and we're going to make sure. 210 00:17:47,990 --> 00:17:54,260 That we have added the index stop up to the beginning of the file. 211 00:17:55,670 --> 00:18:05,150 So we're going to add index up right here and we're going to write this out of file and they will know 212 00:18:05,150 --> 00:18:06,020 we're going to exit. 213 00:18:07,250 --> 00:18:09,020 So now that that is done. 214 00:18:10,910 --> 00:18:13,160 We're going to have to restart the Apache Web server. 215 00:18:13,910 --> 00:18:22,100 So for that, in these few other few options, we give you system CDL restart Apache two. 216 00:18:23,060 --> 00:18:26,900 Or we could have done the Apache controller and restart the service as well. 217 00:18:27,440 --> 00:18:32,720 So let's go ahead and do so for just a refresher. 218 00:18:33,050 --> 00:18:39,140 This is the Apache controller, so we want to start the Damon or we want to restart or stop. 219 00:18:39,470 --> 00:18:40,820 We can do that as well. 220 00:18:41,900 --> 00:18:52,100 So Apache controller status and we can see the browser not found many to install a package providing 221 00:18:52,520 --> 00:18:54,740 the browser or adjust the Apache links. 222 00:18:54,740 --> 00:18:59,220 Very slow systems CTL status. 223 00:19:00,950 --> 00:19:01,940 Apache two. 224 00:19:02,630 --> 00:19:05,000 So we see it's currently loaded and running. 225 00:19:06,270 --> 00:19:09,800 Let's also look at PS status. 226 00:19:14,670 --> 00:19:16,030 I see that the fee. 227 00:19:19,940 --> 00:19:21,940 Service is not running just yet. 228 00:19:21,970 --> 00:19:26,890 Let's go ahead and look at service status, that's all. 229 00:19:28,030 --> 00:19:29,650 Now we see apache is running. 230 00:19:30,430 --> 00:19:32,470 The Cron tab is running network manager. 231 00:19:34,110 --> 00:19:34,950 We have no. 232 00:19:35,930 --> 00:19:36,900 It's free service. 233 00:19:36,900 --> 00:19:39,140 So let's come back to that in a moment. 234 00:19:45,320 --> 00:19:50,870 And we also verified that our PSP is actually running as we were able to go to the browser and we put 235 00:19:50,870 --> 00:19:58,040 it on localhost slash info, not happy and we can see some information about our PHP installation. 236 00:19:59,760 --> 00:20:01,330 This is a lot of valuable information. 237 00:20:01,330 --> 00:20:05,190 And we can see the Apache Hammer is, in fact, configured. 238 00:20:05,670 --> 00:20:08,850 We can see the number of connections as well as the people I've. 239 00:20:17,030 --> 00:20:19,700 So let's go ahead and stall no JavaScript. 240 00:20:20,860 --> 00:20:23,350 So we can do it with Curl. 241 00:20:24,010 --> 00:20:25,060 If it is not. 242 00:20:30,780 --> 00:20:36,380 Well, let's go ahead and minimize this screen. 243 00:20:47,090 --> 00:20:49,820 So no JavaScript is required, not recognized. 244 00:20:50,240 --> 00:20:52,210 You can do the curl command if you want to. 245 00:20:52,220 --> 00:20:56,630 There's multiple ways to get things in Linux as we've already seen, so we're going to go ahead and 246 00:20:56,630 --> 00:20:57,530 install this. 247 00:21:02,730 --> 00:21:03,490 The screen. 248 00:21:06,570 --> 00:21:08,940 Now that we have the programming language installed. 249 00:21:14,580 --> 00:21:18,180 When I go ahead and run a quick update. 250 00:21:34,240 --> 00:21:39,490 Make sure everything is up to date for you forged and make sure there's no errors. 251 00:21:45,110 --> 00:21:47,290 And just to be thorough, we'll go ahead and do it. 252 00:21:50,830 --> 00:21:54,910 We'll do it the way of colonel as well, just so you guys can see that. 253 00:22:00,730 --> 00:22:06,880 I'm going to talk about the in that much, but it is a very useful and important command for Linux. 254 00:22:16,980 --> 00:22:19,620 And we're in a pipe that to. 255 00:22:21,240 --> 00:22:25,200 Pseudo ashy ash. 256 00:22:26,700 --> 00:22:31,380 Says No JavaScript 11 is no longer updated to support version. 257 00:22:31,830 --> 00:22:33,900 So our most likely on version 12. 258 00:22:34,950 --> 00:22:36,720 So let's go ahead and. 259 00:22:37,940 --> 00:22:43,310 Switch that to version 12 and there we go. 260 00:22:43,340 --> 00:22:45,670 Should get no error this time. 261 00:22:47,380 --> 00:22:52,450 So it's doing some things in the background, going out to the county repository, looking at the sources 262 00:22:52,450 --> 00:22:53,410 doubtless file. 263 00:22:53,770 --> 00:22:56,950 It's confirming that our new operating system is actually supported. 264 00:22:57,520 --> 00:23:07,200 So it said run sudo app yet you install so go ahead and run it this way it's. 265 00:23:12,520 --> 00:23:15,070 And it's going to tell us, most likely that it's already installed. 266 00:23:15,580 --> 00:23:18,010 But there are some few extra updates. 267 00:23:24,660 --> 00:23:27,150 The Nazis want to install the package manager. 268 00:23:27,150 --> 00:23:27,690 We're not going to. 269 00:23:27,720 --> 00:23:28,770 Not going to mess with that. 270 00:23:29,770 --> 00:23:31,170 So that's already done. 271 00:23:32,870 --> 00:23:36,650 And now that we've done that, we can do no dash version. 272 00:23:59,360 --> 00:24:02,030 Go look at the server side JavaScript runtime. 273 00:24:02,630 --> 00:24:04,760 So we have version options. 274 00:24:05,570 --> 00:24:07,050 We have a lot of different options here. 275 00:24:07,070 --> 00:24:13,010 With this, we're not going to worry about too much, but just be aware that these server side technologies 276 00:24:13,010 --> 00:24:15,650 do have a manual page as well. 277 00:24:17,660 --> 00:24:18,140 So. 278 00:24:21,460 --> 00:24:22,810 We're going to go into. 279 00:24:23,930 --> 00:24:25,820 So the next part. 280 00:24:33,550 --> 00:24:34,450 That's what I was gonna say. 281 00:24:34,450 --> 00:24:37,360 We have all won 18.1. 282 00:24:43,690 --> 00:24:47,740 And we're going to go ahead and restart our Web server service. 283 00:25:02,910 --> 00:25:05,730 So once we set the server name, DirecTV's presses me. 284 00:25:05,730 --> 00:25:06,810 That's that's fine. 285 00:25:07,450 --> 00:25:07,750 All right. 286 00:25:07,750 --> 00:25:09,060 To go back to the web browser. 287 00:25:19,950 --> 00:25:20,920 And we're going to reload. 288 00:25:20,920 --> 00:25:22,570 And folks, HP. 289 00:25:24,360 --> 00:25:30,810 And we have this time the Apache here, and we also have the Apache environment, and we have some more. 290 00:25:31,860 --> 00:25:33,060 Some more information. 291 00:25:35,220 --> 00:25:36,000 Down here now. 292 00:25:40,060 --> 00:25:41,230 We have my sequel. 293 00:25:44,440 --> 00:25:46,120 They have a lot of different options here. 294 00:25:46,960 --> 00:25:47,740 Even have. 295 00:25:50,350 --> 00:25:51,220 Jason. 296 00:25:53,790 --> 00:26:00,550 Various different credits, additional modules, anything that you might need to install. 297 00:26:00,570 --> 00:26:03,060 Then there's licensing information down there as well. 298 00:26:12,490 --> 00:26:14,110 Double check the version one more time. 299 00:26:14,530 --> 00:26:17,260 07.40.5 for the command line. 300 00:26:18,780 --> 00:26:20,520 And we're going to go ahead and. 301 00:26:24,260 --> 00:26:28,700 We've done that part and we've got the service now running. 302 00:26:30,080 --> 00:26:35,810 And we have successfully gotten our first web page on Kali Linux. 303 00:26:39,060 --> 00:26:46,170 So in summer we talked about setting up programs that use Web services, web browsers to add Web pages, 304 00:26:46,170 --> 00:26:47,340 to serve up requests. 305 00:26:47,820 --> 00:26:48,930 We send things over. 306 00:26:48,990 --> 00:26:55,890 HTP Web servers usually come as part of a larger package of Internet intranet related programs serving 307 00:26:55,890 --> 00:27:03,270 up email downloading requests, things like FTP building and publishing web pages. 308 00:27:04,140 --> 00:27:09,750 Obviously, you're going to want to make changes to Apache like we did because Apache usually looks 309 00:27:09,750 --> 00:27:12,770 at a file called Indexed Page HTML. 310 00:27:12,780 --> 00:27:14,470 We want it to prefer PHP. 311 00:27:14,970 --> 00:27:17,640 So we had to look for indexed at first. 312 00:27:23,060 --> 00:27:24,910 And then we have some practice questions. 313 00:27:25,570 --> 00:27:29,620 So question one Where is the default location web server directory in Linux? 314 00:27:30,640 --> 00:27:32,110 Is it in var HTML? 315 00:27:32,890 --> 00:27:33,910 Is it in Bartleby? 316 00:27:34,100 --> 00:27:35,390 I mean, let me ask. 317 00:27:35,890 --> 00:27:36,370 The amount. 318 00:27:37,660 --> 00:27:40,030 Then the OPPT slash email directory. 319 00:27:41,800 --> 00:27:45,580 Or is it in the ops vase that every directory. 320 00:27:52,410 --> 00:27:57,150 The correct answer is b the var w w w a slash h html directory. 321 00:27:57,600 --> 00:28:00,330 Again, that's where most of your websites are going to be served up from. 322 00:28:00,870 --> 00:28:02,730 So you definitely want to remember that path. 323 00:28:06,150 --> 00:28:10,500 Question two Blank is the name of the default text editor and called lemmings. 324 00:28:11,490 --> 00:28:17,880 We have them have nano mouse, pad and notepad. 325 00:28:19,720 --> 00:28:24,580 Cause the answer is them or the improved version of VI. 326 00:28:24,940 --> 00:28:26,700 Now Nano is another text editor. 327 00:28:26,710 --> 00:28:30,700 You saw me use that you can pick and choose the type of text editor you like. 328 00:28:31,420 --> 00:28:38,470 But Vim is always going to be installed regardless of what flavor of Linux you're working on. 329 00:28:38,470 --> 00:28:42,250 So it's a good one to get experience with and exposure to. 330 00:28:42,790 --> 00:28:46,390 There's also G added, there's Emacs, there's lots of different text editors. 331 00:28:47,860 --> 00:28:53,410 Number three, what command is used to stop an Apache server service. 332 00:28:53,410 --> 00:28:55,750 Apache to stop service. 333 00:28:55,750 --> 00:29:01,870 Apache to reload service Apache stop or service lamp stop. 334 00:29:02,680 --> 00:29:11,800 There's also the Apache controller that the AP, a CHP Ctrl command, but that's not one of the options 335 00:29:11,800 --> 00:29:12,040 here. 336 00:29:12,050 --> 00:29:14,350 So the answer is. 337 00:29:16,390 --> 00:29:19,120 A service apology to stop. 338 00:29:28,570 --> 00:29:32,590 Next question, which is the correct name for the config file for HP? 339 00:29:34,470 --> 00:29:36,030 Or the hypertext processor. 340 00:29:38,650 --> 00:29:40,360 Is it opt out config? 341 00:29:41,770 --> 00:29:43,270 Is it updating? 342 00:29:49,990 --> 00:29:51,070 Peter, I and I. 343 00:29:53,470 --> 00:29:55,390 Or is it p, p, z? 344 00:30:02,040 --> 00:30:05,760 Correct answer is c op dot i9. 345 00:30:13,190 --> 00:30:13,970 Number five. 346 00:30:14,360 --> 00:30:16,130 What is the command used to install? 347 00:30:16,130 --> 00:30:18,470 Node JavaScript applications? 348 00:30:21,260 --> 00:30:22,790 Node dash install. 349 00:30:25,850 --> 00:30:31,490 Node dot JSC dash l npm install. 350 00:30:33,240 --> 00:30:34,620 Or nvm install. 351 00:30:37,990 --> 00:30:40,150 Correct answer is NPM install. 352 00:30:42,490 --> 00:30:47,050 So you want to install JavaScript applications, you have to use the NPM command. 353 00:30:47,050 --> 00:30:48,580 So let's go take a look at that real quick. 354 00:30:52,510 --> 00:30:56,980 Now you may see questions sometimes that we did not cover, and that's okay. 355 00:30:57,580 --> 00:31:00,640 That's why we're covering them now and we're going over them together. 356 00:31:06,660 --> 00:31:12,000 So and PM is the as quick help you can look at different usage info. 357 00:31:12,630 --> 00:31:15,720 So if you want to install modules. 358 00:31:16,830 --> 00:31:17,940 Or JavaScript. 359 00:31:20,930 --> 00:31:21,650 You can do. 360 00:31:22,800 --> 00:31:26,560 PM to see what command or what modules are actually loaded. 361 00:31:28,430 --> 00:31:28,760 Oops. 362 00:31:32,510 --> 00:31:32,840 You're right. 363 00:31:32,840 --> 00:31:34,130 Now it's currently empty. 364 00:31:37,810 --> 00:31:42,670 The NPM view command got an envelop package that Jason. 365 00:31:50,050 --> 00:31:51,670 You can publish modules. 366 00:31:57,880 --> 00:31:59,410 Important command to have. 367 00:32:01,860 --> 00:32:05,100 So summarize, we're going to have our Web servers we looked at. 368 00:32:06,480 --> 00:32:07,290 Lamp stack. 369 00:32:07,290 --> 00:32:09,240 We looked at components of a web server. 370 00:32:10,420 --> 00:32:12,070 We looked at installing Apache. 371 00:32:13,610 --> 00:32:16,010 We looked at installing my ask you all server. 372 00:32:17,630 --> 00:32:22,720 We looked at installing HP, the hypertext processor. 373 00:32:22,730 --> 00:32:29,420 We also looked at installing node JavaScript and running at first web page from a local web browser. 374 00:32:31,420 --> 00:32:33,220 There are some important acronyms to remember. 375 00:32:33,880 --> 00:32:39,120 We have the lamp stack, which we talked about the Onyx Apache last year, LP, HP. 376 00:32:39,610 --> 00:32:40,630 We have the my ask you. 377 00:32:40,630 --> 00:32:43,750 Oh, which is the open source relational database management system. 378 00:32:44,470 --> 00:32:48,640 We have a sequel or the structured query language. 379 00:32:49,690 --> 00:32:56,110 We have PHP, which is the hypertext processor, which is the code that lives in the middle of web pages. 380 00:32:56,560 --> 00:32:59,500 And we have an HTML, which is a language. 381 00:33:00,680 --> 00:33:07,100 Or a hypertext markup language which allows us to further it through the use of tags and other things 382 00:33:07,430 --> 00:33:13,430 to put text and render pictures and run scripts and do things on web pages. 383 00:33:13,850 --> 00:33:16,760 You can think of it like a document type language. 384 00:33:17,180 --> 00:33:22,100 And then we have HTTP, which is how the hypertext markup language gets. 385 00:33:23,530 --> 00:33:31,900 Information from place to place or otherwise known as Port 80 or the World Wide Web traffic, the standard 386 00:33:31,900 --> 00:33:34,480 transport protocol or transfer protocol. 387 00:33:35,180 --> 00:33:42,580 Then we have IRS Internet Information Services, which is Microsoft's alternative to things like Apache. 388 00:33:46,980 --> 00:33:48,770 And that is the end of this module. 389 00:33:48,780 --> 00:33:52,890 I thank you for your attention and I will see you in the next module.