WebMasterCampus
WEB DEVELOPER Resources

Xampp Version 8 With Php 7.4.3.3

Learn how to configure Xampp 8 With Php 7.4.3.3


If you have already installed PHP version 8. However, you got a requirement to run an application that only works on PHP 7.4.33 then follow the following steps to configure PHP 7.4.33

Step-1

Download and install Xampp and Next, download PHP 7.4.33 Thread-Safe Builds

XAMPP only works with Thread-Safe Builds

Download and install XAMPP if not already installed

Step-2

Open file C:\xampp\apache\conf\extra\httpd-vhosts.conf

Disabled this line by adding hash -->  #LoadFile "C:/xampp/php/php8ts.dll" 
then add this line next --> LoadFile "C:/xampp/php/php7ts.dll" 

Disabled this line by adding hash --> #LoadModule php_module "C:/xampp/php/php8apache2_4.dll" 
then add this line next LoadModule php7_module "C:/xampp/php/php7apache2_4.dll" 

Notice PHP 7 uses ‘php7_module’ and PHP 8 uses ‘php_module’

Step-3

  • Inside C:\xampp rename php folder to php-8
  • Unzip and Rename downloaded folder PHP 7.4.33 Thread-Safe folder PHP 7.4.33 to just php and paste inside C:\xampp

Now, start Apache from XAMPP control panel and it will start.

Step-4 (Optional)

You can move back to PHP version 8 by following steps

  • Stop Apache (using XAMPP Control Panel)
  • Revert back changes in file C:\xampp\apache\conf\extra\httpd-vhosts.conf
Disabled this line by adding hash -->  #LoadFile "C:/xampp/php/php7ts.dll" 
then add this line next --> LoadFile "C:/xampp/php/php8ts.dll"  

Disabled this line by adding hash --> #LoadModule php7_module "C:/xampp/php/php7apache2_4.dll"  
then add this line next --> LoadModule php_module "C:/xampp/php/php8apache2_4.dll" 
  • Rename php folder to php-7
  • Rename php-8 folder to php
  • Start Apache (using XAMPP Control Panel)
Created with love and passion.