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 user interface offers a number of options for managing your Apache, MySQL, and PHP installation. All of the options are available under Preferences. Here are some valuable tasks you can accomplish. By default the MAMP servers, Apache and MySQL, start when you start the MAMP application and shutdown when you quit MAMP. You can tell the servers to stay alive and keep on responding to requests even if you've closed the MAMP application, by deselecting the option stop servers when quitting MAMP.
I'll make that change and click OK. You'll see that there's some work being done in the background. Then I'll click Open start page and show you the URL that's used to navigate to the homepage. localhost/MAMP/language=English. Now, I'll close the browser and I will quit the MAMP application. I'll reopen the browser and using a bookmark that I've already setup, I'll go back to that location and you'll see that the servers are still alive. This feature is useful if you want to keep your MAMP servers up and running but don't want to keep the MAMP administrator interface open.
To change that setting, reopen the MAMP application. If the start page opens, close it. Once again go to Preferences and reselect the option. Another option you might want to change is that by default when you open the MAMP application, it always opens the start page. If you don't need that feature, you can turn it off. I've already described the use of the ports settings, how to change the standard ports for Apache and MySQL. Under PHP, you'll find that you can switch between PHP versions.
You can choose 5.3 or 5.2. The Apache section of the Preferences dialog has a single option: changing the document root folder. The default location is a folder named htdocs under /Applications/MAMP. If you want to use another folder anywhere on your hard disk, just click Select, browse, and choose the folder you want to use. When you're done, click OK. Apache will restart. You might be prompted for your password and then the content of your new document root folder will be served from Apache.
So that's a look at some of the most commonly used features of the MAMP administrative interface. Other than these features, you're using a basic version of Apache and MySQL, and anything else you know how to do with those servers can be done with the MAMP environment.
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.