How to change xampp php version to 8.4.
Download https://downloads.php.net/~windows/releases/archives/php-8.4.13-Win32-vs17-x64.zip and unzip (https://www.php.net/downloads.php).
Just overwrite files in /xampp/php directory.
Unzip to php directory on disk C.
Go to https-xampp.conf and change all paths from /xampp/php to /php.
Run command, press ALT + R and type sysdm.cpl and click OK. See in advanced tab environment variables and add in Path.
# Change C:/xampp/php to C:/php or remove from environment variables and add new line:
C:/php
Download https://curl.se/ca/cacert.pem and place to C:/php directory and add path to this file in php.ini curl.cainfo and opessl.cafile for Http client in php, laravel.
Copy from php.ini-development and add in php.ini file path to extensions directory (if you want to place php in different location).
[PHP]
# Php extension directory
extension_dir="./ext"
# Settings
post_max_size = 500M
upload_max_filesize = 100M
# Unhash extensions
extension=bz2
extension=curl
extension=ftp
extension=fileinfo
extension=gd
extension=gettext
extension=intl
extension=mbstring
extension=exif
extension=openssl
extension=pdo_mysql
extension=pdo_sqlite
extension=sockets
extension=sqlite3
extension=zip
zend_extension=opcache
[Session]
session.cookie_secure = Off
session.cookie_httponly = On
session.cookie_lifetime = 86400
session.gc_maxlifetime = 1440
[curl]
curl.cainfo = "C:\php\cacert.pem"
[openssl]
openssl.cafile="C:\php\cacert.pem"
php -v
php -m
C:\xampp\htdocs\index.php
<?php
phpinfo();
die();
?>
{
"php.validate.executablePath": "C:/php/php.exe"
}