Join Candyce Mairs for an in-depth discussion in this video Installing MAMP on a Mac system, part of Dynamic Dreamweaver Websites: Creating and Validating Forms.
We are now going to take a look at installing MAMP on the MAC side and on the MAC side what you want to do is go up to the MAMP website which is mamp.info and on this website MAMP is on the left hand side right here in the gray icon. So this is what you want to download. Whatever the latest version is of MAMP will work just fine for this course. Now once you've downloaded MAMP, what you're going to get, is this file, and in order to work with it, you double-click it.
The first piece you need to do is agree to the license. So I'll agree to the license, and then this is how you install it. So what you're going to do is take this MAMP folder and drag it into the Applications folder right here, and that's all there is to it. So, I'll grab this, drag it into applications. You should see it copying over. And once that's done, on the MAC side, your files will be installed, your MAMP folder in the applications folder.
So, that's where you want to go look to find it, and open up MAMP. And we'll take a look at doing that once this has finished installing. So I now have MAMP installed. I can double-click it right here, and here is our MAMP information. You can see there's a folder here, and here's your application. So, in order to install the course files, what we do is we open up the HT docs folder.
In order to start MAMP, we double-click right here and you can see, are you sure you want to open it? Yes, I do. And there is MAMP all set to go. Now this control screen here, this control panel. That's how you turn MAMP on and off. As long as there's a green light that means both the web server, and the data base server are turned on. For this course you don't nessecarly have to have the data base server on since we're not working with the data base.
If I want to stop these servers I click the stop button. You can see they turn red. That means they're turned off. In the Preferences area, once those are turned off, I'll open that up and we have some options. So you can determine if you want Your server is to start and stop when you open and close mail instead of having to manually do this. You can also turn off the check for mail pro.
We won't be using that. The piece I want to show you is the ports piece. Now generally speaking by default as you can see, the port for Apache is 8888. So if you're going through the course and you need to go into the browser, to preview, you need to put that port number in. The reason for that is because the Mac side has a built in Apache server. Now we don't want to use that server, it is not the best option for working with a web server. It does not automatically install php in my sequel, so what we want to do is use MAMP instead instead cause it's a complete package. The reason this is a different port, is because they don't want to assume. That MAMP will interfere with the built-in web server. What we can do for this course is just click to Reset MAMP Ports. This would put it back to these default ports.
If I click on this one, you can see it converts to the standard port for APACHE. For a page request which is 80. As long as it's set to 80 you do not need to put the port number and when you're previewing your pages. So in order to work with this course we want to have port 80 for Apache. You can see it also changes my sequel port to 3306. So you just click this button. It converts both ports for you, and we don't have to worry about it. The only reason this would be a concern is if you want to run the built-in Apache server with Mac as well.
And we're not going to be doing that, so we are all set to start the servers. You click this button. Now when you set it to the default ports, you will need to plug in a password, so let me go ahead and do that. I'll click okay, and we're now started up once again. For this course the assumption is that you have started your servers. As I said, we're technically not working with a database but usually you will want to if you're working in a full dynamic site and so both of those are turned on at the same time. So that's how you install, and, work with MAMP, within the Mac, operating system.
- Installing XAMPP on a Windows system
- Installing MAMP on a Mac system
- Using admin consoles
- Creating PHP pages
- Commenting code
- Working with web forms
- Adding custom validation
- Using redirects
- Dealing with email issues