Start learning with our library of video tutorials taught by experts. Get started
Viewed by members. in countries. members currently watching.
Installing Apache, MySQL, and PHP with David Gassner describes how to install and configure Apache HTTP server, MySQL database server, and PHP, known as the AMP stack, on a local development computer. Chapters are devoted to multiple installation approaches: installing the components separately on both Windows and Mac (including coverage of Apache and PHP on Mac OS X 10.7 Lion and 10.8 Mountain Lion), installing the pre-packaged Apache and MySQL distributions in WampServer on Windows and MAMP on Mac, and installing the cross-platform XAMPP and Bitnami on both Mac and Windows. Exercise files are included with the course.
This course was updated on 07/06/2012.
The MAMP software bundle represents one of the easiest ways to get started with Apache, MySQL, and PHP on Mac OS X. You can download the MAMP software from this web site, www.mamp.info. Make sure you're looking at the English version of the page. You'll see that there are two versions of MAMP: one simply called MAMP and the other, MAMP PRO. When you download the software, you'll actually be downloading both at the same time. Go to the Downloads link, then click the Download link here, and follow the rest of the prompts to download the software to your hard disk.
You'll see that the software is downloaded in a zip archive file. When you extract that archive file you end up with this installer package, MAMP.pkg. To run the installer, double-click, follow through the prompts, including reading the license agreement and if you agree, click Continue and Agree, and then click Install. There are no other options for the MAMP installation. When prompted, type your administrative password. The installation should take just a few minutes, as the files are written to your hard disk and placed into your Applications folder.
Once the installation is complete, click Close. Then, in Finder, go to your Applications folder. You'll see in your Applications folder that there are two folders named MAMP and MAMP PRO. You'll be using the free edition, MAMP, and you won't need MAMP PRO at all. You can keep it in the Applications folder if you want. Or, if you prefer, you can move it to the trash. Now before I start up MAMP, I'm going to make sure that any copies of Apache or MySQL that are already on my Mac are turned off.
I'll go to my System Preferences. From there I'll go to Sharing, and I'll make sure that Web Sharing is unchecked. That will make sure that the version of Apache that's included with Mac OS X is off and won't conflict with the version that's included with MAMP. If you've installed a native version of MySQL, check that as well. I'll go to the MySQL pane and make sure that it's stopped. Now I'm ready to fire up MAMP. I'll go into the MAMP folder and show you that there is a MAMP application. And there is also a critical folder named htdocs.
The MAMP htdocs folder is your web document root, where you place your HTML, graphics, PHP, and other files that you want to call from a web browser. I'll go back to the MAMP folder and double-click MAMP to start it up. When you first start up MAMP, the server should fire up automatically, and once they start, this homepage should appear. Notice that this home screen tells you that you're running MySQL on port 8889.
That's a nonstandard port, and I'll show you how to change that in another video. You can also see, up here in the URL bar, that you're running Apache on port 8888, again, a nonstandard port. MAMP comes out of the box this way to allow you to run these copies of Apache and MySQL at the same time as the versions that are included with Mac OS X, but if you prefer, you can use the standard settings as well. To verify that your database is working, click on phpMyAdmin and you should see this listing, showing you that phpMyAdmin is working and connecting to your MySQL database.
So that's all there is to it. MAMP is incredibly simple to install. There are other options that you can use, and I'll show you some of those options in other videos.
Find answers to the most frequently asked questions about Installing Apache, MySQL, and PHP.
Here are the FAQs that matched your search "":
Sorry, there are no matches for your search ""—to search again, type in another word or phrase and click search.
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.