Skip to main content

How To Update PHP In XAMPP


 downloaded the version of PHP that I wanted (7.1.17) and then I strategically replaced the one I had in XAMPP with it. Here are the steps I followed.
  1. Download your desired PHP binary from here. Make sure you download the same build type as your current version. If you don’t know what this is, go ahead and download an x86 Thread Safe version since most XAMPP installations have that build. In my case, I downloaded the7.1.17 VC14 x86 Thread Safe build.
  2. Extract the contents of the Zip file.
  3. Create a backup of your current xampp/php folder. I called mine php-backup7.1.2
  4. Still inside /xampp, create a new php folder, then copy the contents of the extracted zip file into it.
  5. If you have custom configurations in the php.ini file, copy and replace it from your old php folder to the new one. If you didn’t previoisly edit the your php.ini, then skip this step. In my case I had previously installed drivers for sql server and defined them in my php.ini, so I had to copy my old php.ini over to keep all my old configuration.
  6. Now, follow this step only if you’re upgrading to a major version (e.g from PHP 5 to 7. I didn’t need to follow this step because I upgraded from version 7 to 7 so the code below remained the same for me.
    • Open this file in a text editor. C:\xampp\apache\conf\extra\http-xampp.conf
    • Find the following lines:
    LoadFile “C:/xampp/php/php5ts.dll”
    LoadFile “C:/xampp/php/libpq.dll”
    LoadModule php5_module “C:/xampp/php/php5apache2_4.dll”
    • Replace them with:
    LoadFile “C:/xampp/php/php7ts.dll”
    LoadFile “C:/xampp/php/libpq.dll”
    LoadModule php7_module “C:/xampp/php/php7apache2_4.dll”
    • Find and replace php5_module to php7_module everywhere it appears in this file.
  7. Restart Apache
Original Link

Comments

Popular posts from this blog

Recursive query in Laravel

<?php /** * Created by PhpStorm. * User: Zafar Hayat * Date: 6/26/2020 * Time: 7:06 PM */ namespace App\Services; use Illuminate\Support\Facades\DB; class FileWithDeepSearch { /** * @var PHPFunction */ private $PHPFunction ; /** * @var Common */ private $common ; /** * @var Filters */ private $filters ; public function __construct( PHPFunction $PHPFunction , Common $common , Filters $filters ) { $this -> PHPFunction = $PHPFunction ; $this -> common = $common ; $this -> filters = $filters ; } public function getQuery( array $data ) { $currentDirectoryFilesQuery = $this ->getCurrentDirectoryFilesQuery( $data ); $recursiveQuery = $this ->getRecursiveQuery( $data ); $recursiveQuery = $recursiveQuery ->unionAll( $currentDirectoryFilesQuery ); return $recursiveQuery ; } private function getCurrentDire...

Jmeter

JMeter Advantages Open source license : JMeter is totally free,  allows developer use the source code for the development Friendly GUI : JMeter is extremely easy to use and doesn't take time to get familiar with it Platform independent : JMeter is 100% pure Java desktop application. So it can run on multiple platforms Full multithreading framework . JMeter allows concurrent and simultaneous sampling of different functions by a separate thread group Visualize Test Result:  Test result can be displayed in a different format such as chart, table, tree and log file Easy installation : You just copy and run the *.bat file to run JMeter. No installation needed. Highly Extensible : You can write your own tests. JMeter also supports visualization plugins allow you to extend your testing Multiple testing strategy : JMeter supports many testing strategies such as  Load Testing , Distributed Testing, and  Functional Testing . Simulation : JMeter can simulate mul...