Clipsify

How to Install Apache 2.4 + PHP 5.6 + MYSQL on Windows

Update 12/27/2018: Follow the updated instruction to setup your environment with the latest version of Apache, PHP, MySQL.

Step 1: Install Apache 2.4

bin>httpd.exe -k install

Step 2: Install PHP 5.6

LoadModule php5_module "c:/php/php5apache2_4.dll"
AddType application/x-httpd-php .php

# configure the path to php.ini
PHPIniDir "C:/php"
<IfModule dir_module>
    DirectoryIndex index.html index.php
</IfModule>

Step 3: Install MySQL 5.6.21

extension=php_gd2.dll
extension=php_mbstring.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_pdo_mysql.dll
<?php
$servername = "localhost";
$username = "username";
$password = "password";

// Create connection
$conn = new mysqli($servername, $username, $password);

// Check connection
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully";
?> 
Exit mobile version