Start learning with our library of video tutorials taught by experts. Get started

Installing Apache, MySQL, and PHP
Watching:

Installing BitNami for Windows


From:

Installing Apache, MySQL, and PHP

with David Gassner

Video: Installing BitNami for Windows

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.
Expand all | Collapse all
  1. 17m 35s
    1. Welcome UPDATED
      1m 9s
    2. Understanding Apache, MySQL, and PHP
      7m 12s
    3. Using the exercise files
      1m 7s
    4. What's new in this update UPDATED
      3m 35s
    5. Choosing a software stack
      4m 32s
  2. 30m 18s
    1. Installing Apache HTTP Server 2.4 on Windows
      6m 51s
    2. Installing PHP 5.5 on Windows
      4m 12s
    3. Starting Apache from the command line
      5m 24s
    4. Installing MySQL on Windows UPDATED
      7m 24s
    5. Installing phpMyAdmin on Windows
      6m 27s
  3. 44m 5s
    1. Activating Apache on Leopard and Snow Leopard
      3m 35s
    2. Activating Apache on Lion
      5m 9s
    3. Activating Apache on Mountain Lion and Mavericks
      4m 57s
    4. Configuring personal site folders on Mountain Lion and Mavericks UPDATED
      6m 59s
    5. Activating PHP on Mac OS X
      6m 12s
    6. Installing MySQL on Mac OS X
      3m 59s
    7. Setting the root user password
      2m 28s
    8. Installing phpMyAdmin on Mac OS X
      6m 16s
    9. Uninstalling MySQL on Mac OS X
      4m 30s
  4. 14m 35s
    1. Installing WampServer
      6m 25s
    2. Managing WampServer
      2m 2s
    3. Defining directory aliases through WampServer
      2m 55s
    4. Changing software versions with WampServer add-ons
      3m 13s
  5. 10m 58s
    1. Installing MAMP UPDATED
      4m 6s
    2. Configuring Apache and MySQL server ports UPDATED
      1m 57s
    3. Managing MAMP UPDATED
      4m 55s
  6. 29m 3s
    1. Installing XAMPP for Windows UPDATED
      10m 0s
    2. Managing XAMPP for Windows
      4m 4s
    3. Managing MySQL security through XAMPP for Windows
      2m 40s
    4. Installing XAMPP for Mac OS X UPDATED
      6m 14s
    5. Managing XAMPP for Mac OS X
      2m 27s
    6. Managing MySQL security through XAMPP
      3m 38s
  7. 13m 20s
    1. Installing BitNami for Windows
      6m 31s
    2. Installing BitNami for Mac OS X UPDATED
      6m 49s
  8. 18m 49s
    1. Handling port conflicts with Skype on Windows
      2m 37s
    2. Handling other port conflicts on Windows
      5m 19s
    3. Detecting and handling port conflicts on Mac OS X
      6m 26s
    4. Configuring Apache to work with IPv6 on Windows 8
      4m 27s
  9. 31s
    1. Goodbye
      31s

Watch every course in the library with a lynda.com membership.
Each course includes high-quality videos taught by expert instructors.

Become a member
Please wait...
Installing Apache, MySQL, and PHP
2h 59m Intermediate Jan 21, 2011 Updated Mar 28, 2014

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.

Topics include:
  • Performing Apache, PHP, and MySQL as separate installs
  • Activating Apache and PHP on Leopard, Snow Leopard, and Lion
  • Setting the MySQL root user password
  • Installing WampServer
  • Changing software versions with WampServer add-ons
  • Installing MAMP
  • Configuring MAMP's Apache and MySQL server ports
  • Installing XAMPP for Windows and Mac
  • Managing MySQL security through XAMPP
  • Installing Bitnami for Windows and Mac
  • Detecting and handling port conflicts
  • Working with Apache and IPV6 in Windows 8
Subjects:
Developer Web Servers Databases
Software:
MySQL PHP HTTP Server Apache HTTP Server
Author:
David Gassner

Installing BitNami for Windows

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.


Expand all | Collapse all
Please wait...
Q: I followed the procedure in the "Installing XAMP for Windows" video, but 1) I got no text file popup after install, and 2) the Admin button does not bring up phpMyAdmin page. Nothing happens even though the Running button is green.

A: The text window not popping up after the installation is just a difference in the installation flow; it shouldn't cause any functional problems.

The issue around phpMyAdmin not opening correctly from the Xampp Control Panel has come up before. There is a bug in the newest version of Xampp for Windows (version 1.7.4) that affects the Control Panel. After starting the Control Panel, and then starting both Apache and MySQL, clicking the MySQL Admin button doesn't open the browser to the phpMyAdmin as expected. However, both MySQL and phpMyAdmin are working correctly.

Follow these steps instead:
  1. Click the Admin button next to Apache to open the Xampp home page in the browser.
  2. Click phpMyAdmin under the Tools section of the menu on the left side of the page.
phpMyAdmin should open correctly. From that point, you should be able to manage your database.
Q: I'm using TextWrangler on the Mac to uncomment the following line in the httpd.conf file, as shown in the video "Activating PHP with the included Apache server" in Chapter 2:

LoadModule php5_module libexec/apache2/libphp5.so

When I try to save the changes, I get the message "Error code: -5000". What's going wrong?
A: This is a common issue with the latest version of TextWrangler. Here's another way of editing the file with a command line editor named Pico that's included in Mac OS X. Remember, most text editors don't give you the ability to edit files as the "root user", and you need those rights to edit the httpd.conf file.

Unlike TextWrangler, Pico doesn't accept mouse input, so you have to do everything with the keyboard:
  1. Open Terminal from /Applications/Utilities/Terminal.
  2. Type sudo pico /private/etc/apache2/httpd.conf.
  3. Type your password and press Return.
  4. Press Ctrl+W for 'Where is'.
  5. Type 'php' and press Return. You should find the commented-out line with php5_module
  6. Delete the '#' at the beginning of the line.
  7. Press Ctrl+X for 'Exit'.
  8. Press Y for 'Yes'.
  9. Press Return to save and exit
We recommend also using Pico to edit the php.ini file.
Q: After downloading XAMPP I was unable to start Apache from the control panel. MySQL started fine. When I click the Start button next to Apache it looks like it starts and then stops. Here is the output:

Busy
Apache Started (Port 80)

The MySQL button says "running" with a stop button; the Apache button still? says start no matter how many time I click it.
A: This usually means that another program is using Port 80 (the port that Apache needs). Port 80 is used for any web server, so you either have another web server running or you're running something else (usually Skype) that is using Port 80.

If you're running Skype (and this is really common), you need to configure it to use a different port. If it's not Skype, it may be that you're running another web server or IIS (Microsoft Internet Information Server, the web server that comes with Windows), which you'll need to quit.
Q: This course was updated on 07/06/2012. What changed?
A: A few of the WampServer movies were updated to reflect the new user interface. We also added movies on installing Bitnami, an open source stack solution, and troubleshooting Apache to work with IPV6 on Windows 8.
Q: This course was updated on 01/09/2012. What changed?
A: Two new movies were added to Chapter 2, "Installing Separate Components on Mac OS X," to reflect the changes in the latest version of Mac OS X, Mountain Lion (version 10.8). These movies cover activating Apache and configuring personal site folders in Mountain Lion.
Q: This course was updated on 8/23/2013. What changed?
A: We added new software download locations and coverage of Apache HTTP Server 2.4 on Windows, as well as information on managing Apache from the command prompt, editing hidden config files with the nano editor, and installing the new version of Bitnami on Windows and Mac OS X.
Share a link to this course
Please wait... Please wait...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.
Upgrade now


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

join now

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Installing Apache, MySQL, and PHP.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Welcome to the redesigned course page.

We’ve moved some things around, and now you can



Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

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.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked