Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Installing Apache HTTP Server 2.4 on Windows

From: Installing Apache, MySQL, and PHP

Video: Installing Apache HTTP Server 2.4 on Windows

The most recent version of the Apache HTTP server, as of the Before downloading and installing Apache you need to make sure that Once the files have been extracted, go to the C drive root.

Installing Apache HTTP Server 2.4 on Windows

The most recent version of the Apache HTTP server, as of the time of this recording, is version 2.4. And you can get binaries built from Microsoft Windows from this website: www.apachelounge.com/download/. On this page you'll see links for versions of Apache built with both Visual C++ 11 and Visual C++ 10. If you're working on Windows 7 or Windows 8, you should use the most recent version, VC11.

If you're working on Windows XP or Windows Vista, you'll need to use the earlier version. I'll focus on the most recent versions of everything. Before downloading and installing Apache you need to make sure that you have the right redistributable for C++ installed on your system. There's a link on this webpage to get to the right page on the Microsoft website and you can download the executable from here. When you click the download button use this version for X86, even if you're running 64-bit windows I'll be walking you through installing the 32-bit version of Apache and PHP, and I'll show you why in a later movie.

Check the option, click Next, and you'll be downloading the file. You'll also need the binary for Apache 2.4. Use whatever version is displayed on this screen. I'm using 2.4.6. And again, even if you're working with 64-bit Windows, choose the 32-bit version of Apache. I've already downloaded both of these files to my desktop, along with the right version of PHP that I'll show how to use in a later movie. Start by installing the Redistributable for C++.

When you double click to start the application, if you see these buttons labeled repair and uninstall, then you already have the Redistributable installed and you don't need to install it again. Just close the dialogue. But if you see an install button click it and follow the rest of the prompts to install C++. Along the way you might be prompted with user access control dialog and you might be asked to reboot your computer. Follow through all of those steps And then come back here.

And you're ready to install the Apache. The Apache binary is delivered as a zip archive file. It contains a folder named a Apache 2, 4, for Apache 2.4. Extract that folder and place it in your C drive root, in Windows explorer or file explorer, you can simply drag the folder on to your C drive and the photo will be extracted. Once the files have been extracted, go to the C drive root. You can keep that photo named the same as it was or you can rename it.

I'm going to rename it as simply Apache. If you rename it you'll need to make some changes in a configuration file. I'll open the Apache folder, and then go to the Conf folder for a configuration and I'll open the file httpd.conf. Depending on your computer's configuration, you might not see the file extension, but when you hover the cursor over the file, you should see the box appear, showing that it's a conf file. You can edit this file in any text editor.

I'll use Notepad. The configuration file contains a number of references to the installation folder. I'll press Ctrl+F for find, and type c:/apache24. Use a forward slash and not a backslash. Here's the first instance as part of the server route configuration. Now, again, there are many instances of this string. And you need to replace them all. So I'll get rid of the Find dialog. I'll click anywhere in the file to make sure nothing is selected.

I'll go to the Notepad Menu and choose Edit > Replace, and I'll search for c:/Apache24 and replace it with c:/Apache. And click Replace All. In Notepad, you don't see any indication of how many strings were found and replaced. But if you clicked Replace All, the operation is complete. You also need to make a change to a setting called Server Name. I'll press Ctrl+F and type in Server Name, and then I'll scroll down a little bit and find this setting.

It starts with a pound sign or hashmark. Which is a comment character. I'll remove that and then I'll change the value of ServerName to localhost. The default port is 80, and you don't have to add it in, but you can if you like. It looks like this. localhost:80. And now we're ready for our first test. I'll save my changes by pressing Ctrl+S, and close Notepad. And then I'll go to a command prompt. In Windows 8, you can get to a command prompt by moving the cursor to the lower left corner, right-clicking, and choosing Command Prompt or Command Prompt admin.

I'll choose just Command Prompt. In Windows 7, Windows Vista, and Windows XP, you can get to a command prompt by running an application called CMD. In the command prompt window, I'll change to the Apache folder And from there to the bin sub-folder. The bin folder contains a number of executables, including this critical one, httpd.exe. I'll run the server by typing httpd.exe.

When you press Enter, you might see a prompt for a firewall issue. If you see a firewall dialog box appear, click the appropriate button to accept this service. Now to test the server, go to a browser and type http://localhost and you should see this string of It works! . If you don't see that try refreshing the page by pressing Ctrl+R. Now I'll show you the file that's being displayed. In the Apache folder, there's a subfolder called htdocs.

This is your document root folder in a default Apache installation. And this file, index.html, is the file that's displayed by default when you navigate to local host in the browser. When you open it up in a text editor, you'll see that it's a very simple HTML page with an HTML tag, a body tag, an H1 tag, and the string it works. So if you've gotten this far, and you can see that page in the browser, your Apache HTTP server installation is working.

And you're ready to go to the next step, adding PHP.

Show transcript

This video is part of

Image for Installing Apache, MySQL, and PHP
Installing Apache, MySQL, and PHP

39 video lessons · 43764 viewers

David Gassner
Author

 
Expand all | Collapse all
  1. 17m 35s
    1. Welcome
      1m 9s
    2. Understanding Apache, MySQL, and PHP
      7m 12s
    3. Using the exercise files
      1m 7s
    4. What's new in this update
      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
      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
      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
      4m 6s
    2. Configuring Apache and MySQL server ports
      1m 57s
    3. Managing MAMP
      4m 55s
  6. 29m 3s
    1. Installing XAMPP for Windows
      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
      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
      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

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

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.


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.

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
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.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

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
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.