 Hello, this is Christian. In this video, I'm going to show you how to install Zemp on your Macintosh. So we're going to download the Zemp from the Zemp website, install it, and there's some configuration to run on the local host. So let's go ahead and do that. Okay, so the first thing is you want to go to the Zemp website here. If you search for it, or just type in ApacheFriends.org, and you should see this site that looks very similar to this one. If you use Windows or Linux, you can install these using a Mac here. So basically, you just download this file. Okay, I'm not going to do that. I already did. So you click it, download that file. What you'll get is a virtual machine that will run on the Macintosh, and that has been changed because of security reasons. If you go to here, I'll show you what that means. So usually in the past, you're able to run a OSX native file so that you can have access directly into your hard drive. But that has been changed. And so as you can see, this message here is no longer available. So you have to use the VM, because the dash VM is a virtual machine that runs on the server on the machine. So let me just close this for now. And then once you download, you should see this file. You have the OSX here version here and then with the dash VM. So all these will be in this VM. And the difference is because of the VM, you have a different IP address. So go ahead and click that to install. And so once you install that, this is not working here. But OK, so it's going to load installer and just go through the installing process. It's basically drag here, put it into your application folder. And it's going to take a few seconds to install that for us. So we'll just wait until that's done. OK, so now that's been installed. You can close this now and you can remove this, eject this. You don't need that anymore. OK, so now open your application folder and you should see XAMP in there. So at the very bottom I have a list here. You can show icons if you want. But the very bottom here is the XAMP folder. OK, so if you open it, just double click on it. And it should load XAMP, the interface that can, you can have access to those information here. So let me just minimize this for now. OK, so just say open. So this is the interface here. You have a couple of tabs here to look at. One is the general. You will start here by turning on the, this is the virtual machine. You need to turn that on first so that all these services and network and volumes and so on can be activated. So first just click start and it might take a little while, maybe like a couple seconds or maybe in a minute to have it turned on and we'll wait until that it's turned on. Once that's on, all these menus here will be available and these services also will be clickable as well and along with all the other information there. So we just wait until that it's turned on. OK, so it's green and you see the IP address here. My machine is 192.168.64.2. This is a local IP address. It's a private address on your local machine, but this is attached now to a virtual machine. OK, so if you go to the services here, you see these are available. All these will be turned on when we activate them. You can start one at a time if you want to. The networking here, we need to activate this as well because now again, Macintosh needs to run on a secure server or a local machine to make this work. So we'll enable this in a minute. So first thing is go ahead and notice that these services will be turned on already for some reason. Not sure what I did, but if they're not turned on, you can just click and start all of them or you just click and go to the application and it will also turn all these on. So if it's all green, then you're great, you're done pretty much, right? There's nothing much to do and that's what you want. If it's red or something, then usually you have a port issue and that needs to be configured. But hopefully this is the case. And so if I go to the application, if I click that, it's going to launch the dashboard. The ZEP dashboard, you see that it launches the site at 192.168.64.2 slash dashboard. This is a folder and this is a PHP right here. If you don't see this, that means you don't have PHP installed, ZEP is not properly configured, it's not installed. OK, so again, notice the IP address is this one here. If you try to change it to local holes, OK, you see it doesn't work because we haven't configured that yet. So let's go back to where it was before and then later on when we do what database is, you're going to go to this site here called PHP might admin. It's just another application inside the local server here. So if you click on that, it's going to say access forbidden because of security concerns. You need to run in a local network or you can set this file and configure this file. So we're not going to do that. This is a simpler way to do it. So we're going to come back and do that in a bit here. So OK, so now you are actually in PHP mode because now this is the server and this is a folder you will find inside the HT docs. So let's go back to, and let me just minimize this for now. So we have, oops, not that one. OK, so let me just put over here on the side so we can see what's going on. So on the services, you can see all these are turned on. At the network here, notice there is a local holes 8080 port for 480 and then there's a 443 port for 443 SSL. And this is also for SSL. It's secure, but you need to enable this to access PHP might admin and I'll show you that in a minute there. So then if you go back to the applications window here, you'll see that inside here you have a folder called XAMP. Again, if you just double click, you only get this. If you try to access it by right clicking on it and go to the show package contents, you'll see a vertical content inside here or some stuff that you don't want to mess with. These are the source files that run XAMP. So please do not go in here and then change anything here. It's supposed to be hidden. But where do you access this information? For example, this content here, where do you find it? So that is by going to the volumes tab here. You need to mount it. So I'll show you here on this screen here as well so you can see. Let me minimize this. So on the left side of this column, you'll see that once I mount that volume, you will see another IP address here. This is all your location for the drives. So if I click mount and you see on the left side here, the IP address, the same IP address we see earlier is mounted here. So if you click on that one now, this is the LAMP environment. So if you click LAMP, open that file, you see a bunch of files and photos in here. One of these you see is called DHT docs. This is where your PHP file lives. It needs to be inside this folder here. But before we go on there, notice you also see MySQL. This is for your database and PHP, the PHP source code itself, and a folder called PHP MyAmin. This is in a program that lets you monitor or configure databases. So all three here kind of work together. So we'll access that later. So please, again, don't do anything here unless you know what you're doing. So in the HT docs, this is the root directory of your server. You can see if I go back here and launch that site again. I'm not sure where it went, but okay, over here. Okay, so again, back in the dashboard. So you see this is a dashboard folder. This is a directory. This is a dashboard folder here. Okay, so if I click the dashboard, you'll see a bunch of files. One of these is against the PHP file or just HTML. This is a index HTML here. Okay, this one here is what you see over here. So if I type in index.html, you see exactly the same thing. Okay, that is this file here. Okay, if I renamed it to, let's just say index two. Okay, index two now. If I go back and refresh it, it should fail. Okay, so that is the file you want to load. Okay, so in this case is index one. I mean, just index. So I want to change it back to just index. And so if you write your code later on, and if you want to use this server, you need to pull your files in here. All right. Oh, what do I do? Okay, so then if you want to run a PHP file, I'm already inside the dashboard. I'm going to get out of this dashboard, go back to the HTML docs. Inside the HTML docs here, say that I want to create another file. I'm just going to copy this HTTP file here. And I'm going to duplicate it. Okay, and then we'll just call it my PHP. Put it down here. We'll change it to myphp.php. I'm going to edit this file, open with the editor, text edit, and just put a very simple code in here. So for now, just remove everything, keep the PHP tab here, tag here, and just say echo. Welcome to PHP. Okay, that is PHP statement. Again, it's not case sensitive. In this case, in the word echo here, but usually put all of the cases, make it consistent. Okay, just save that file. You can close it and just save it. Just say, okay. And then now you can access this file called myphp here in the HT docs. Again, HT docs represents this slash here. Okay, this slash here is the HT docs. And so now if I type in myphp.php, you'll see that this is the file that I put it here, right? And then later on, you know, you create a project, so you don't want to put everything here. You create a new folder, maybe call it myproject. Okay, and then oops, myproject. We already have one for some reason. And let me delete this. I have duplicate. So I have a photo called myproject. And here. Okay, and then the summer project, I have a file called testphp, for example. Okay, so I can go into myproject and test that php. And here again, in that testphp file, just a test file I did earlier, you put it in here. So all your project can be here. Another thing can go in here. So this is how things are laid out in LAMP. All right. So again, make sure you put all your content in here in the htdocs. If you're running outside of phpstorm, okay, we'll talk about phpstorm in the next video, but this is for running php on a server, which is in this case in the Apache server. So you need to activate this and then, you know, mount the volume so you can access to your files and then and so on. Okay, so to get this file, again, just click explore. You can go over here and double click that or if you click explore, it's going to open that same folder I just showed you here. Okay. All right, so now back to the dashboard. Again, notice the IP address is 192.168.24.4. If you want to go and use local holes, okay, you can in this case because it's not created, it's not allowed. So to do that, you need to go into the network here and change and activate this. Right now it's port 8080. This is the default you can change if you want, but I just figure, you know, leave it as is and just activate this, enable it. Okay. Once it's enabled, then you can go and use that, but then you make sure you use the local holes colon 8080 and that should turn it on and now you should use local holes port 8080 or you can use this IP address here. It doesn't matter which one you use. Okay. It's pointing to the same place. So then now I get, if I go back to the dashboard, I get the same information as I said earlier. Okay. So now once that's activated and I can now go into PHP My Admin and as you can see, I have access to my PHP My Admin and this is now the interface for my SQL database as you can see here. Okay. So later on when you create the databases, this is what you've been using to do that. So I hope this is helpful. And if you have any questions again, please let me know. Just remember that you have to turn this on every time and then activate this database later on. If you use, we're going to use databases, you need to turn this on and then just make sure you turn this on as well. If you want to use the local holes, otherwise use this IP address here. Okay.