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.
BitNami is an organization that provides prepackaged AMP software. They provide Cloud services, prepackaged components that you can install on your own server and local packages. On this page, bitnami.com/stacks, you'll find links to several popular applications including content management systems like WordPress and Joomla. For this course, I'm going to focus on just the AMP stack, and specifically this one, named MAMP stack. The MAMP stack software includes everything you need to run PHP-based applications.
It packages PhpMyAdmin and optionally, many popular packages that you might use in your PHP development. I've already downloaded the installer to my desktop. It's downloaded as a DMG file, and when you double-click it, you'll mount it as a volume. Double-click the link to start the installation and then click again to continue. On the first screen, click through. And on this screen, select the components you want. You'll always install PhpMyAdmin. That can't be unchecked.
But you can deselect anything else that you're not going to use. And this will reduce the size of the installation and the length of time it takes. I'm going to keep Zend Framework and PhpMyAdmin Type it twice and click Next. Uncheck the option to learn more about BitNami cloud hosting. You can get that information from their website.
Click Next again and Next again to start the installation. If you compared the BitNami installation to other AMP packages such as ZAMP and MAMP, you'll find that it takes quite a bit longer to install. So, be patient, take a break, come back after a few moments and the installation will have completed. When the installation is complete, you'll see this screen. Leave the option checked to launch the stack and click Finish. Then, after a few moments, a browser should open that takes you to this screen.
By default, Apache will be running on port 8080. You can get to PhpMyAdmin by going to the Applications tab and clicking the access link. When you get to PhpMyAdmin's login screen, type in root for the username and the password you entered during the installation and click Go. Notice that MySQL is running on this standard port of 3306. To test your access rights, try creating and dropping a database. Click Databases, type in a name of a new database, I'll just call it mydb and click Create.
And you should see that the database is created. Then check it to select it and click Drop. Confirm and the database should go away. If you can do all that, then you know you have all the access rights you need. You can start and stop the BitNami stack from an application that's included in the installation. Go the the Applications folder and search for MAMP stack. That's a folder. Open it up and you'll see all the files for your AMP stack, and then double-click this file, Manager OSX. And that will open a control application.
On the Manage Servers tab, you can stop and start your services. There's an application log screen that'll show you errors. And back on the Welcome screen, there's a link that'll take you back to that homepage, another link that'll take you to PhpMyAdmin, and another one that opens up the Application folder in Finder. Within the application folder, you'll find your Document Root folder under Apache2 htdocs. And that's where you will place all of your HTML and graphic files and other website resources.
And finally, if you want to uninstall the BitNami stack, go back to the Application Install folder and you'll find an uninstall script has been created for you. Just run it and BitNami will be removed completely. Be sure to backup anything in your websites before you run the uninstaller. So that's a look at the Bitnami stack for Mac OS X. It's simple and easy to install, and includes not just the simple AMP stack, but can optionally include MVC frameworks that you might find useful.
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.