Install Mysql Module Php Windows 8

Double click on the downloaded file and just follow the instructions. Everything is automatic. The WampServer package is delivered whith the latest releases of Apache, MySQL. Once WampServer is installed, you can manually add aditionals Apache, Php or MySql (only VC9, VC10 and VC11 compiled) versions. Everyone who has issues with MySQL service, to fix it try to reset MySQL installatoin and install in from scratch: 1. Remove the service: net stop mysql c:Serverbinmysql-8.0binmysqld -remove.
Windows 10 has been released on the world and so an updated 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 Install First download Apache 2.4 from (httpd-2.4.16-win32.zip) Apache 2.4.16 VC11 This release is supported by the PHP 5.6 install from windows.php.net for Apache 2.4. Extract the zip and copy it to the root of C:. This will be C: Apache24 when it is all done. Microsoft Visual C 2012 Runtime Download and install Microsoft Visual C VS 2012 x86 from this is required for Apache to run.
PHP 5.6.12 and higher Download php-5.6.12-Win32-VC11-x86 from. Extract and rename folder to php and move to C:. Edit Apache’s config file, c: Apache24 conf httpd.conf and add the following lines to the bottom of the file. LoadModule php5module 'c:/php/php5apache24.dll' AddHandler application/x-httpd-php.php # configure the path to php.ini PHPIniDir 'C:/php' While we are at it we can add index.php to Apache’s list just incase we want to have a starting page as php.
Find Directory index and add index.php DirectoryIndex index.html index.php Save the file changes. Next we need to register the path where the applications reside. This is done by editing the PATH variable. Add;c: php;c: Apache24;c: Apache24 bin to PATH in Environment variables. PATH ENVIRONMENT (Control Panel System Properties Advanced Environment Variables System variables Path).
Example:;c: php;c: apache24;c: apache24 bin; Save and reboot the system. Next we need to input a value for ServerName variable. You will have to un-comment it. Save the changes to the config file. Next move to the Register Apache Service step.
Register Apache Service Now let’s register Apache as a service. Open a command prompt and type. C: apache24 bin httpd -k install If do not want Apache starting automatically at start-up/reboot: Command line C: sc config Apache2.4 start= demand Now lets check Apache settings by issuing the command, c: Apache24 bin httpd -S PHP Edits Now 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: php php.ini-development to php.ini Now let’s edit php.ini Uncomment extension directory.; Directory in which the loadable extensions (modules) reside.;; extensiondir = './'; On windows: extensiondir = 'ext' Uncomment mysql modules extension=phpmysql.dll extension=phpmysqli.dll Save the changes and open a command prompt.
Serial web utility 3com drivers free. Check to make sure it shows loaded modules. C: php -m So now we have Apache running and configured to use php. Lets create a file called info.php, save it and see if Apache parses the info correctly to display the results. Open Notepad or your favorite Windows editor and type and save the following. Open your browser and type, localhost/info.php for the location and you should receive alot of information about PHP. MySQL Download and install. Change installation directory to C: MySQL MySQL Server 5.6 instead of Program files as there could be permissions issues.
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. At this point you should have a working Apache / PHP / MySQL installation running and ready for you to use!
I found I had x64 ns x86 mixed. I have updated the post. Here are the correct steps.
Apache 2.4 Install First download Apache 2.4 from (httpd-2.4.16-win32.zip) Apache 2.4.16 VC11 This release is supported by the PHP 5.6 install from windows.php.net for Apache 2.4. Extract the zip and copy it to the root of C:. This will be C: Apache24 when it is all done. Microsoft Visual C 2012 Runtime Download and install Microsoft Visual C VS 2012 x86 from this is required for Apache to run. PHP 5.6.12 and higher Download php-5.6.12-Win32-VC11-x86 from. Extract and rename folder to php and move to C:. Edit Apache’s config file, c: Apache24 conf httpd.conf and add the following lines to the bottom of the file.

LoadModule php5module “c:/php/php5apache24.dll” AddHandler application/x-httpd-php.php # configure the path to php.ini PHPIniDir “C:/php” While we are at it we can add index.php to Apache’s list just incase we want to have a starting page as php. Find Directory index and add index.php DirectoryIndex index.html index.php Save the file changes. Next we need to register the path where the applications reside. This is done by editing the PATH variable.
Add;c: php;c: Apache24;c: Apache24 bin to PATH in Environment variables. PATH ENVIRONMENT (Control Panel System Properties Advanced Environment Variables System variables Path). Example:;c: php;c: apache24;c: apache24 bin; Save and reboot the system.
Hi, Thanks for these instructions, I am very new to anything to do with php or Mysql. I am trying to buid a database on my own computer (not for publishing on the web) and I am assuming I still need to install everything as per instructions. I managed to get apache up and running but get an error message when testing php.
The error message is c: php -m php is not recognized as an internal or external command, operable program or batch file. Can you give any advice on what might be causing the problem please? I think it might be to do with your instruction about editting the php.ini file. I found the code;Directory in which the loadable extension (modules) reside. And inserted the code Uncomment mysql modules. Immediately after extensiondir =”ext” But I am not sure if this is where it was meant to be inserted (the only bit of instruction I couldn’t follow).
Any help would be greatly appreciated, Many thanks, Rob. To edit the path variables you need to add;c: php;c: apache24;c: apache24 bin; to the end of the path statement. To get to the path statement you can do this by right clicking on the windows icon in the lower left Control Panel System Advanced System Settings Click on Environment Variables button. In the System Variables box find the Path variable and double click on it and add the line;c: php;c: apache24;c: apache24 bin; and save it and reboot. For the Servername change the to either the IP address of the system or the system name. Apparently several others have had the same problem.
I have installed Apache24, PHP7 and MySQL (64-bit versions) in Windows 10 exactly per the instructions provided. When DocumentRoot in httpd.conf is configured as C: apache24 htdocs” info.php shows up perfectly.
When DocumentRoot in httpd.conf is changed to another directory where all the website files exist, only the html files show up (for example, index.html for the website). However, info.php produces a blank screen. There is no error message, only a blank screen.
(Note: Yes, I have a copy of the info.php file in DocumentRoot directory.) Have spent “hours” on this. Any help will be appreciated. I also found a fix at the Apache website yesterday. Because I had already created httpd-vhost.conf (as you had suggested), I simply added the following to it, and now it works.
Require all granted As the administrator, if I have access to the full system and all directories, it is somewhat annoying that all of the above should be necessary to make things work in Windows 10. BTW, I did not have to do this in Windows 7 on a different computer. But that is another issue! Thank you very much for pointing me in the right direction.
Thanks for your reply. Downloaded httpd-2.4.27-Win64-VC15.zip then php-7.1.9-nts-Win32-VC14-x64, and VC15. VC15 fails saying another version installed, remove vc17 then reinstall vc15 then install vc17. Vc17 removes vc15.
Microsoft says vc17 includes vc15. Edit apache conf file at end. LoadModule php7 “c:/php/php7apache24.dll” etc.
Mysql On Windows
Path setup as instructions. Register apache – “C: apache24 bin httpd -k install Installing the ‘Apache2.4’ service The ‘Apache2.4’ service is successfully installed. Testing httpd.conf. Errors reported here must be corrected before the service can be started. Httpd: Syntax error on line 535 of C:/apache24/conf/httpd.conf: Cannot load c:/php/php7apache24.dll into server: The specified module could not be found.” The module php7apache24.dll does not exist in apache or php downloads. Can you help?