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.
WampServer makes it very easy to switch between different versions of each of its software components. Let's say for example that you are working with the legacy PHP and MySQL application and the production environment for this application uses an older version of MySQL, MySQL 5.1. When you installed WampServer, you got the most recent version of MySQL, 5.5, but you can install the two versions side-by-side and you can do this with all three components: Apache, PHP and MySQL.
These are called add-ons. To get to the add-ons, go to the WampServer Downloads Screen and scroll down a bit and you'll see links for PHP, Apache and MySQL add-ons. There's also a link for Beta add-ons, but these are actually full installers of WampServer. There is one there, for example, that let's you install the most recent version of PHP 5.4 as a Beta. I'm going to demonstrate multiple versions of MySQL. But again you can do this with Apache and PHP as well.
I'll click the link, Download MySQL Addons, and I'll see that there are versions of MySQL going all the way back to 4.1.2. I'll choose the most recent 5.1 distribution, 5.1.41. I'll click the link and download the software to my Desktop. Now I've already downloaded it and here it is. To run the add-on installer, just double-click it and run through all of the dialogs, including any User Account Control dialogs that might appear.
The add-on installers don't have any options. So just follow through the dialogs and complete the installation. You don't have to stop WampServer before you do the installation. If any restarts are required, the installer will handle it for you. Let's see what happened. I'll go to the system tray and click the WampServer icon and then I'll go to MySQL > Version. I'll see that I have both the newest version, the one that was originally installed and the older version.
I'll go to the Localhost link and show that I'm running MySQL version 5.5.2. I'll close the browser and go back to the system tray icon to the Admin menu to MySQL > Version and I'll choose 5.1.41. You'll see the color of the icon change momentarily as the WampServer installation restarts. Then, I'll go to the icon and I'll choose Localhost again and I'll see MySQL version has changed to 5.1.
So now I can easily switch back and forth between the versions and work with the version of MySQL that I need for my current application. You can do this with Apache and PHP as well. Switching between the different versions of the individual components as needed, you might find certain incompatibilities. For example one version of PHP might not work with another version of Apache, but you can always return to your original versions to get a working AMP Stack.
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.