- Download PHP 7 from the given link: https://windows.php.net/downloads/releases/php-7.3.10-Win32-VC15-x64.zip
- Make a copy of php.ini-developement and remame it php.ini
- Now edit php.ini file and do the following changes
- uncomment extension_dir = "ext"
- Add extension=php_pdo_pgsql.dll
- Add extension=php_pgsql.dll
- Note I am using Postgres SQL so I enabled the above two extensions
- Download Apache HTTP 2.4 from the given link: http://fs3.softfamous.com/downloads/tname-120875cb0f198/software/httpd-2.4.34-win64-VC15.zip
- Edit httpd.conf file in the conf folder and edit:
- SRVROOT right directoy (root folder of Apache HTTP)
- Add LoadModule php7_module "D:/Program Files/php/php7apache2_4.dll"
- Add AddType application/x-httpd-php .php
- PHPIniDir "D:/Program Files/php/"