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

Installing PHP 5.5 on Windows

From: Installing Apache, MySQL, and PHP

Video: Installing PHP 5.5 on Windows

The most recent version of PHP as of the time of this recording was PHP 5.5. There are versions for 32 bit and 64 This Zip archive does not contain a top level folder.

Installing PHP 5.5 on Windows

The most recent version of PHP as of the time of this recording was PHP 5.5. You can get the binaries for PHP 5.5 from Microsoft windows from this web page at windows.php.net/download. There are four different versions available. There are versions for 32 bit and 64 bit windows, and there are non-thread-safe and thread-safe versions. Even though I'm working on 64 bit Windows, I'm going to be using the 32 bit version of PHP.

It matches the 32 bit version of Apache that I already installed and most importantly, the 64 bit builds are currently marked as experimental. By using the 32 bit versions, you'll be using a version that's stable. Download the thread-safe version. That's the version that's compatible with Apache. It downloads as a Zip archive file. Just as with Apache, you can install it by simply extracting it to your hard disk. This Zip archive does not contain a top level folder. Its files are just children of the archive itself.

So, when you extract it, you'll need to create a folder to contain the files. The safest way is to right-click on the Zip archive and choose extract all. I'll extract the files to a new folder called c:/php. After the files have been extracted, Windows Explorer or File Explorer should open to show you the new folder. If it doesn't, open it yourself and scroll down toward the bottom. Look for this file, php5apache2_4.dll. This is a DLL that's used to connect to Apache at run time.

And to make it work altogether, you'll need to add some information to your Apache configuration file. Go to your Apache installation folder. Mine is in c:/apache. Go to your configuration folder named conf and open the httpd.conf file. Now, I've already added the correct lines to my file. They go down at the bottom of the file. So, you can simply copy from here and add these lines to your configuration file.

There are three directives. The Load module directive loads the DLL. The Add Handler directive says that when a file with a. php file extension is requested, it will be processed with this mime type. Application/x-httpd-php. And that connects it to the DLL. And finally, the PHP INI DIR directive says that the PHP configuration file, called php.ini is located in c:/php.

Make sure that you're using forward slashes and not backslashes for all of these configuration values. And when you're done entering them into your configuration file, save and close the file. Finally, to test PHP, you'll need a simple PHP script, and I've provided it in the free exercise files that accompany the course. It's named phpinfo.php. You might not see the. php extension, but if you move your cursor over the file, you'll see that it is a PHP file.

Copy that file to the clipboard, and paste it into your Apache folder's htdocs folder as I've done here. This file has a single, simple command, calling the PHP info function. Once you've copied the file into place, you're ready to test PHP. Go back to your command prompt. If Apache is still running, press Ctrl+C to stop it. And then start it up again. Type httpd and press enter. Now to test PHP, type the URL http://localhost/phpinfo.php and you should see this screen, indicating that PHP is working and that it's correctly configured within Apache.

If you have all that set up, you're ready to go on to the next step installing MySQL.

Show transcript

This video is part of

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

39 video lessons · 43488 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.