New Feature: Playlist Center! Pick a topic and let our playlists guide the way.

Learn it fast with expert-taught software and skills training at lynda.com. See what you can learn

By David Gassner | Thursday, July 10, 2014

Installing PHP on Windows

installing_php

The Windows packaging of PHP has changed since my course Installing Apache, MySQL and PHP was last updated, and could affect your installation should you choose to install separate components. No fear—you should be able to correct the problem by creating a new version of your php.ini file. Here’s a solution for installing PHP on Windows that works on my system.

The following instructions assume that you installed PHP in the directory “c:\php“.

1) Open File Explorer (or Windows Explorer on systems prior to Windows 8) and navigate to “c:\php“.

2) Locate a file named “php.ini-development“. Make a copy of that file and name it “php.ini” in the same directory, then open the new file in a text editor.

3) Locate the setting for “extension_dir“. There are 2 versions. Uncomment the second by removing the semi-colon at beginning of the line. Set “extension_dir” to the location of the “ext” subfolder under PHP:

extension_dir = "c:/php/ext"

Be sure to use forward slashes rather than backslashes to separate the directory names.

4) Search for “php_mbstring.dll“. You should find this line:

;extension=php_mbstring.dll

Remove the semi-colon to uncomment that line.

5) Search for “php_mysqli.dll“. You should find this line:

;extension=php_mysqli.dll

Remove the semi-colon to uncomment this line as well.

Save your changes, and then restart Apache and try navigating to the URL. You should now see a login form asking you for your user credentials.

Learn it from the experts.

With online video courses at lynda.com, you can reach your goals faster. Learn software, improve your skills, and get an inside look at how the professionals work.

See what you can learn


Share this article:

Tags: , , ,

Get the latest news

  •   New course releases
  •   Pro tips and tricks
  •   News and updates
  
New releases submit clicked

You can change your email preferences at any time. We will never sell your email. More info

All articles

Featured articles

A lynda.com membership includes:

Unlimited access to thousands of courses in our library
Certificates of completion
New courses added every week (almost every day!)
Course history to track your progress
Downloadable practice files
Playlists and bookmarks to organize your learning
Become a member

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.