Clipsify

How to Install Apache 2.4.37 + PHP 7.3 + MYSQL 8.0.13 on Windows

If you are a PHP/MySQL developer, it is very important to be able to work on your application locally in your own environment, since you can make changes and update to your application quickly and effectively. The instruction below will help you to setup your environment with the latest version of Apache, PHP, and MySQL. For any reasons, you are still using the older versions, you can follow the old setup of Apache, PHP, and MySQL here.

Since I put together that instruction 4 years ago, it no longer works with the newer version of PHP 7.3 and MySQL 8.0.13. So here is the updated instruction:

Step 1: Install Apache 2.4.37

bin>httpd.exe -k install

Step 2: Install PHP 7.3

LoadModule php7_module "c:/php/php7apache2_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 8.0.13

extension=curl
extension=gd2
extension=mbstring
extension=mysqli
extension=openssl
extension=pdo_mysql
<?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";
?> 

Step 4: Enable Curl

If you run into the following curl issue, you can update the Path to resolve that issue

Fatal error: Uncaught Error: Call to undefined function curl_init()

In Control Panel -> search and view Advanced System Settings -> Click on Environment Variables… -> Under System variables, find Path -> Add c:\php

Exit mobile version