ubaid4j / php

Basic Stuff About PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to configure PHP 7 with HTTP Apahce 2.4 Server in Windows

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

About

Basic Stuff About PHP


Languages

Language:PHP 100.0%