Hello and welcome to our screen recording. In this screen recording, we're going to install the MAMP software for the Macintosh. So we're going to download from mamp.info. So I'm going to keep this. I don't quite know why Macintosh is unhappy with that. And so I'm going to go into my Downloads folder and here I have this folder and its a MAMP Pro 401, that's because I downloaded it twice. And so I'm just going to click on this, And it opens an installation. And I'm just going to accept all of the defaults here. Okay, so it's been installed. So let's take a look at where it's at. So if I open Finder I go to My Computer, and I go into my hard drive, Applications. It's in MAMP, and I can start MAMP up. And this tells me a bunch, PHP info here is really useful because it tells you about the configuration of the system that you've got. I've got, Version 7 PHP, and it tells me where the configuration is for this. And so I'm going to go take a look at the configuration file and I'm going to do a Control + F and look for display errors. So, this is the problem we have when we're doing development with MAMP, is that display errors is off, okay? And so, I want to fix this by editing the initialization file. And you gotta go to the right one, ApplicationsMAMP/bin/php/php7.0.1/phpini file, okay? And by the way you gotta do some MAMP control panel, let's do MAMP control panel, starts and stop, little green dots, means that it's running. So I am going to run the Atom text editor, And I'm going to open a file. And I'm going to go to my Mac, Wrong, my Macintosh > Applications > MAMP, let's see, let's see. MAMP, bin, php, PHP 7.1.0, conf, PHPINI, yay, I found the file! So open this up and it's a nice little text file, and this a PHP configuration. And I'm going to scroll down here and look for display_errors. If you don't do this, there we go, so we're looking for this line it says, display_errors = off. It talks about this. Print out errors is part of the output for production websites. Do no I mean, do not this for production. Sure, but we're doing development on our local hard drive, and so we won't turn this on. Because if you don't, you won't always see the errors, I'm going to turn up display_startup_errors, I'm going to turn those on. And so we want as many errors as we can in development of course, if you're running in production you would turn this differently. And so, what I'm going to do then is I am going to then save this file, Cmd + S, I've saved it. Okay, now the thing you've gotta do at this point is you've got to stop MAMP and restart it. Stop the servers, Now the servers are stopped, and if I go to refresh this, it will blow up, because it's not there, but when I start these servers, They'll come up, And I'll go to the web start page, and I'll look for PHP info. I can close these tabs now, and I should go down and look for display_errors on and on. See that's the success. That means that you are successful and that's great. Okay, so let's then also write a simple little page. I just, how do I get rid of, I've got to hit Escape I think, yeah there we go. So I'm going to make a little file. Hello, From my first web page. Okay, so, We're going to find out where this is at, local host 8880 because this is now a web server running on your local computer. And if you go into your Finder, It is, well let me start at the top. Where's My Computer? Come on computer. Macbook Pro, Hard drive, Applications, MAMP, HTdocs that's the folder we want to be in, okay. That's the one we want to be in, so I'm going to take this file here. I'm going to say Save as. And I'm going to go to MAMP, htdocs, I'm going to make a new folder called First. I'll make a new folder, and then I'm going to save this as Index.php, Save. It also nicely highlights it. So now if I hit refresh here, you'll see that I got this folder name first, and if I go into First, the slash. If I don't have anything there, it's as if I typed index.php. because that's called for a folder index.php is the default file, that a web server, one of the several default files that the web server looks at to load it. And so that's pretty much it, away we have successfully installed MAMP and changed our startup variables and written our first little program. Okay, hope it helps. [MUSIC]