How to Install PHP 7.2 on EasyPHP DevServer 14.1 VC11



The following steps to install PHP7.2 (or 7.3 or older versions) works only EasyPHP DevServer 14.1 VC11

Prerequisites

    1. Working EasyPHP DevServer 14.1 VC11 installation.

    2. Exit EasyPHP server if running.


Download links for EasyPHP DevServer 14.1 VC11

    Source - https://www.easyphp.org/save-easyphp-devservervc11-latest.php

    Alternate - ? 

 

1. Download PHP 7.2 from php.net

Download the preferred PHP version for x86 (all EasyPHP 14.1 versions are x86 only), in zip format and are marked "Thread Safe" from

https://windows.php.net/download/

Download link for PHP 7.2.13 (VC15) :  https://windows.php.net/downloads/releases/php-7.2.13-Win32-VC15-x86.zip

2. Extract the files to EasyPHP directory

Locate the \php folder on your EasyPHP installation directory and extract the PHP7.2 zip and rename the folder to "php7213VC15". like

Open the newly created folder. The path to new php should be at

~\EasyPHP-DevServer-14.1VC11\binaries\php\php7213VC15\

3. Copy and edit description file

Copy "easyphp.php" file from 

~\EasyPHP-DevServer-14.1VC11\binaries\php\php_runningversion 

to newly created folder 

~\EasyPHP-DevServer-14.1VC11\binaries\php\php7213VC15\

Open and edit the "dirname" and "version" as shown below

    $phpversion = array();    $phpversion = array(
   
    "status"    => "0",
   
    "dirname"   => "php7213VC15",
   
    "name"      => "PHP",
   
    "version"   => "7.2.13",
   
    "date"      => "2018-12-10 09:57:26",
   
    "notes"     => "",
    );
?>


5. Run EasyPHP and select new version

Start EasyPHP devserver and open the following link on browser

http://127.0.0.1/home/index.php?page=php-page&display=changephpversion
   
and click the "select" button located near the new php version number. 

Once selected, the files from ~\EasyPHP-DevServer-14.1VC11\binaries\php\php7213VC15\ 

are now at ~\EasyPHP-DevServer-14.1VC11\binaries\php\php_runningversion

6. Edit Apache config

Open "httpd.conf" file located in 

~\EasyPHP-DevServer-14.1VC11\binaries\apache\conf
 
and comment out the "php5_module" line

If your EasyPHP installation location is "C:\Program Files (x86)\" then it should look like this

#LoadModule php5_module "C:/Program Files (x86)/EasyPHP-DevServer-14.1VC11/binaries/php/php_runningversion/php5apache2_4.dll" 

and add the following line below it

LoadModule php7_module "C:/Program Files (x86)/EasyPHP-DevServer-14.1VC11/binaries/php/php_runningversion/php7apache2_4.dll"

7. Copy libraries and restart EasyPHP

Make copies of "ssleay32.dll" and "libeay32.dll" and other necessary library files on both

~\EasyPHP-DevServer-14.1VC11\binaries\apache\bin

and

~\EasyPHP-DevServer-14.1VC11\binaries\php\php_runningversion

The files can be found on either of those folders.

Restart EasyPHP devserver and visit 

http://127.0.0.1/home/index.php?page=php-page&display=phpinfo

to confirm php info.
Copyright Slickalpha.com | All Rights Reserved. Powered by Blogger.