Start learning with our library of video tutorials taught by experts. Get started
Viewers: in countries Watching now:
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.
When you first install MAMP, the Apache and MySQL servers are set up with special ports. They do this so that you can run the MAMP servers side by side with other Apache and MySQL installations. But if you want to use MAMP with the normal ports, you need to configure it. From the MAMP control panel, first open the start page, and confirm that Apache is listening on port 8888. You'll see that in the URL and that MySQL is listing on 88, 89.
That's in the page, itself. Then close the browser, and return to the control panel. Click on Preferences. The Preferences dialog has tabs to start and stop the servers to configure the ports, to manage the version of PHP you're using, and to get get to the document root for Apache. Click on the Ports tab, and then click the button to set Apache and MySQL to their standard ports. When you click OK, the two servers will restart automatically.
You might be prompted for your administrative password. If so, type it in, and click OK, and watch for the icons in the top right corner. When you see those click open start page again and this time local host should be displayed in the URL without any port information that means it's listening on the standard port of port 80. And down below in the page you'll see that the port number from MySQL has been reset to 3306, if you still see the old ports just try refreshing the page make sure you're seeing the most recent information.
But if you see the standard ports being used, you're now ready to use MAMP with any software that works with PHP and MySQL.
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.