David Gassner |
Thursday, July 10, 2014
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:
Remove the semi-colon to uncomment that line.
5) Search for “php_mysqli.dll“. You should find this line:
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.
Tags: David Gassner, Developer, PHP, Windows
Check out these popular Developer courses.
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:
Keep up with news, tips, and latest courses with emails from lynda.com.
We've updated our terms and conditions (now called terms of service).Go Review and accept our updated terms of service.