Jun 20, 2017 - This post is a how to guide for installing Apache, PHP and MySQL. LoadModule php7_module 'c:/php/php7apache2_4.dll'. 3 Responses to “How install Apache 2.4 PHP 7.1 and MySQL 5.7.18 on Windows Server 2016”. In my apache httpd.conf I have (note I have # as remmed out because it took me 1 hour at least). So I left it to show me how not to do it. #PHPIniDir 'c: apps php ' #PHPIniDir 'C: Apache24 ~PHP_download php-5.6.11-Win32-VC11-x64 ' PHPIniDir 'C:/Apache24/~PHP_download/php-5.6.11-Win32-VC11-x64' #LoadModule php5_module 'c:/apps/php/php5apache2_2.dll' LoadModule php5_module 'C:/Apache24/~PHP_download/php-5.6.11-Win32-VC11-x64/php5apache2_4.dll' AddHandler application/x-httpd-php.php In the above folder (and seen below) I have these files: Directory of C: Apache24 ~PHP_download php-5.6.11-Win32-VC11-x64 12:33 PM. Well it is finally time to start playing a bit more with Microsoft’s latest server OS Windows Server 2012 R2. One of the many things to have on the list is getting the WAMP (Windows/Apache/MySQL/PHP) stack working. So in this post we will get installed and running Apache 2.4.9, MySQL 5.6.19 and PHP 5.5.13 on Windows Server 2012 R2. Also, instead of 32 bit apps we will be install 64 bit. You will need to download and install Visual C++ Re-distributable for Visual Studio 2012 from. You will also need.NET 4.0 installed as a prereq for MySQL and Visual C++ 2010 re-distributable. Download 64 bit Apache (httpd-2.4.9-win64-VC11.zip) from Download and extract the zip and copy it to the root of C:. This will be C: Apache24 when it is all done. Download php-5.5.13-Win32-VC11-x64.zip Thread Safe 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. C: php; c: Apache24; c: Apache24 bin; to PATH in Environment variables. PATH ENVIRONMENT (System Properties| Advanced| Environment Variables| System variables| Path). Example:;c: php;c: apache24;c: apache24 bin; 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. & gt; 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. PHPMyAdmin PHPMyAdmin is a very nice tool to use for administering your MySQL installation. Download and install. Extract the file and move to c: apache24 htdocs. Rename directory to phpmyadmin. Create a config directory under phpmyadmin. Open a browser and type localhost/phpmyadmin/setup/index.php to complete the installation. At this point you should have a working Apache / PHP / MySQL installation running and ready for you to start developing!!! 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. Also on the PHP Edits sections you need to: Uncomment mysql modules extension=php_mysql.dll extension=php_mysqli.dll in c: php php.ini You probably need to uninstall and reinstall mySQL as being installed in c: program Files causes issues. Midi blues.
0 Comments
Leave a Reply. |