Install Mysql Module Php Windows

IntroductionThis post is a how to guide for installing Apache, PHP and MySQL on the latest release. In this post like previous we will cover installing all the programs individually.

This will cover installing 64 bit versions of the programs.Apache 2.4 InstallFirst download Apache 2.4 from (httpd-2.4.25-win64-VC14.zip) Apache 2.4.25 VC14This release is supported by the PHP 7.1.6 install from windows.php.net for Apache 2.4.Extract the zip copy Apache24 to the root of C. This will be C:Apache24 when it is all done.Microsoft Visual C 2015 RuntimeDownload and install Microsoft Visual C VS 2015 x64 from this is required for Apache to run.PHP 7 and higherDownload php-7.1.6-Win32-VC14-x64 (thread safe) from. Extract and rename folder to php and move to C.Edit Apache’s config file, c:Apache24confhttpd.conf and add the following lines to the bottom of the file. C: php; c: Apache24; c: Apache24 binto PATH in Environment variables. PATH ENVIRONMENT (Control Panel System Properties Advanced Environment Variables System variables Path).Example:;c:php;c:apache24;c:apache24bin;We can also set this from the command prompt.setx PATH “%PATH%;c:php;c:apache24;c:apache24bin” /MSave and reboot the system.Next we need to input a value for ServerName variable.

Mysql

You will have to un-comment it. Save the changes to the config file. Next move to the Register Apache Service step.Register Apache ServiceNow let’s register Apache as a service. Open a command prompt and type. C: & gt; sc config Apache2.

4 start = demandNow lets check Apache settings by issuing the command,c:Apache24binhttpd -SAt this point we can start Apache service and open a web browser and go to localhost and get the Apache It Works! Page.PHP EditsNow we have to do a few edits to the php.ini file to tell it to load support for mysql and the location for the extensions. Since there is not a already set php.ini file we need to rename one of the two examples to php.ini.Rename c:phpphp.ini-development to php.iniNow let’s edit php.iniUncomment extension directory. & gt;Open your browser and type, localhost/info.php for the location and you should receive alot of information about PHP.MySQLDownload.

Php Mysql Extension Install

You will also need to install Microsoft Visual C VS 2015 x64 from and Microsoft Visual C VS 2013 x64 install first.Once the installation is completed you can let the configuration wizard run and setup the database server. The defaults will work just fine, but remember what you set the password to for root and create a local user.At this point you should have a working Apache / PHP / MySQL installation running and ready for you to use!