Hello everyone,
I had to use PHP 8.3 due to force majeure... That's why I updated it myself on XAMPP (i have Xampp 8.2.12), because it is not known how long it will take to prepare the new version with PHP 8.3.
How to run custom version of PHP on XAMPPI am sharing the method here so that if anyone needs to use PHP 8.3 quickly, you can try updating XAMPP by manually replacing the PHP version with a newer one:
Step 1Before making any changes, it's always a good idea to backup your important files and databases to avoid data loss.
Step 2Make sure XAMPP is not running. You can stop the Apache and MySQL services from the XAMPP Control Panel.
Step 3Go to the XAMPP installation directory and navigate to the php folder. Rename the existing php folder to something like php_backup.
Step 4Visit the official PHP website (https://windows.php.net/download#php-8.3) and download the Windows version of PHP 8.3.4 (Current).
Xampp using Thread Safe version so we have to download
VS16 x64 Thread Safe (2024-Mar-13 12:02:32)This is direct link to download:
https://windows.php.net/downloads/releases/php-8.3.4-Win32-vs16-x64.zip
Step 5Then, copy the contents of the PHP 8.3.4 folder that you downloaded into the XAMPP php folder.
Step 6Create new folder inside php folder and name it "windowsXamppPhp" for example you have c:\xampp\php\windowsXamppPhp path and copy again the contents of the PHP 8.3.4 into the windowsXamppPhp folder too (I do not know why! But xampp does it so I did just to make sure).
Step 7I also copied other folders and files from php_backup to the php folder which were now missing in the downloaded php 8.3.4, which are:
cfg
CompatInfo
data
docs
man
pear
scripts
tests
tmp
www
CompatInfo.php
webdriver-test-example.php
Step 8Now we need php.ini file!
Duplicate "php.ini-development" in php root folder and rename it "php.ini"
Personally, I used the online comparison tool to make the PHP configuration the same as XAMPP, so that I could compare the new php.ini file with the old one in php_backup faster and better and make sure you enabled desire php extension such as mysqli, gd, pdo_mysql, pdo_sqlite ...
Step 9Now you can start the Apache and MySQL services from the XAMPP Control Panel.
Check http://localhost/dashboard/phpinfo.php
I hope this helps