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.
When you install MAMP Pro, Apache and MySQL are installed with custom ports. You can find out what the current ports are by going to the Start page. If you look at the web address that's used to open the start page, you'll see the port number 8888 that Apache is listening on. And down below in the MySQL section of the homepage you'll see the port being used by MySQL. It defaults to 8889. Those ports are not standard and in fact if you're going to try to use your AMP stack with the certain products such as Dreamweaver, they aren't going to work.
So before you continue with your development work you should change the ports back to the standards of port 80 for Apache and port 3306 for MySQL. Here is how you do it. Go to the MAMP application and click Preferences. In the Preferences dialog click Ports. Click the button labeled Set to default Apache and MySQL ports. You'll see Apache changes to 80 and MySQL to 3306, click OK. Both Apache and MySQL will restart and you might be prompted for your administrator password.
Type it in and then watch the indicators to see whether the servers are starting up correctly. They should be set to green. Once the servers have started, open the start page again. This time you should see that the Apache server is listening on the standard port 80, indicated by localhost without a port number, and MySQL should be listening on Port 3306. Once you've change to the standard ports for Apache and MySQL, you'll be able to work with your MAMP installation. If you have any troubles changing ports, try this. Go to the Preferences and click Reset MAMP ports and click OK and that will cause the service to restart using the custom ports that MAMP sets up.
Then go back to Preferences again and once again set to the default Apache and MySQL ports. You sometimes have to give MAMP a little bit of a nudge to get it to keep the proper settings. And once again you can always confirm that the servers are using the correct settings by going to the start page and looking at the web address and the MySQL configuration.
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.