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.
BitNami is an organization that provides application server support services. They provide cloud services, but also have packaged versions of common web applications. You can get to these through the webpage at http://bitnami.com/stacks. You'll find packages for common applications, such as WordPress or Joomla! But I'm interested in the simple WAMP stack, so I'll click that link, and get to this web page, at bitnami.com/stack/wamp.
The latest version of the WAMP Stack, as of the time of this recording, is version 5.4. It includes the standards of Apache, MySQL, and PHP, but also bundles optionall, phpMyAdmin, and a number of other valuable packages. You can also include frameworks, such as Zend, Symfony, Codeigniter, and so on. I've already downloaded the installer to my desktop. So, I'll fire it up from there. When you start it, you might see a user account control dialog, and if you do, just click Yes.
If you see a prompt asking whether you have an antivirus software package running, you can usually ignore it and just click Yes, but to be on the safe side, you might want to deactivate your antivirus software only during the installation. When you get to the first setup screen, click Next, and then you can select which packages you want to include. PhpMyAdmin will always be included. You can't deselect it, but all these other packages are optional. And I recommend deselecting the ones you don't want, it'll make the installation go faster.
I'm going to keep Zen framework, because I use it sometimes in my php work, and click next. Next, select the folder where you'll install BitNami. By default, it's installed under the C drive route, under a BitNami folder. I'll accept the default, and click Next. Type in a password for the MySQL database. This is the root user password, and it has to be at least six characters. After typing the same password twice, click Next. Do you select the option to learn more about BitNami cloud hosting? That's just information that you don't need right now.
Click Next again, Next again, and the installation starts. Depending on how many optional packages you included, the installation might take a little while. Typically, it takes longer than WampServer, or Zamp for Windows. And it'll take a specially a long time if you've included a lot of optional packages. But however long it takes, when it's finished, you'll get a completion dialogue box. When you get to this screen, you're ready to start up the WAMP Stack. Leave the options selected to launch the stack, and click Finish.
If this is the first time you've started the stack on your computer, you might see a firewall dial-up, asking if it's okay to run this stack. Accept it and continue, and you should then see a browser open, that takes you to 127.0.0.01, you can reach the BitNami server either through this IP address, or through local hosts, either should take you to the BitNami home screen. The BitNami home screen has two tabs, Welcome and Applications. And the Applications tab should have phpMyAdmin.
Click Access to open up phpMyAdmin, and you'll see a log-in dialog. The username will be root. And the password will be whatever password you entered during the installation. Enter the username and password and click Go. And you should get to the phpMyAdmin home screen. To fully test phpMyAdmin, try creating and dropping a database. Go to the Databases tab, click into Create Database and type new db, and click create.
You should see the database appear on the list. Select it by checking the checkbox, and click Drop. Click OK, and you should see the database go away. And if you're able to do those two things, you'll be able to do everything else you need, through phpMyAdmin. In the BitNami stack, both Apache and MySQL are installed as Windows services. There are couple of ways of starting and stopping them. One way is through the control panel. In Windows 8, I'll go to the control panel, by right clicking in the lower left corner and choosing control panel, and in other versions of Windows, go through the Start Menu.
In the Control Panel, type Services into the text box, and then click View Local Services. The BitNami services start with WAMP. So I'm going to click into the list, and type W A. And that takes me to WAMPStackApache, and WAMPStackMySQL. You can stop and start services here in exactly the same way you do with any service, by clicking the buttons on the toolbar, or by double-clicking on the service to open the dialog, and starting and stopping from here.
But BitNami's WAMP Stack also includes a dedicated graphical UI. To find it, go to Windows Explorer, or File Explorer, and go to the BitNami installation folder. Which on my system was under C:\BitNami\wampstack and then the version. In this folder, you'll find an application called Manager Windows. When you double click to open, you might see a User Account Control dialogue. And if so, click yes. When the control application opens, you'll see that it has three tabs.
The manage service tab has buttons to stop and start the services individually, or to start or stop all. On the welcome screen, there are also buttons to go to phpMyAdmin. I'll click that and show that I go to phpMyAdmin in the server. And there's also a button to open the application folder in file explorer. Once you're in the application folder, you can go to the Apache2 folder. And under there you'll find the HT docs folder, and that's your HTTP servers document root folder.
The place where you put all of your HTML files, graphic files, and other website resources. So that's the BitNami WAMP Stack. It's powerful, it's reliable. It installs using standard Apache and MySQL ports, and it includes this great graphical graphical UI to control it. If you want to get rid of the BitNami Stack, go to the control panel, choose uninstall program, look for BitNami WAMP Stack, and uninstall it from there.
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.