Update PHP 83.x to PHP 84.x in wsl ( debian )
hardyweb

hardyweb @hardyweb

About: Highly motivated and self-directed IT professional with a strong foundation in web development (particularly Laravel) and a passion for continuous learning.

Location:
Terengganu, Malaysia
Joined:
Jun 20, 2022

Update PHP 83.x to PHP 84.x in wsl ( debian )

Publish Date: Nov 23 '24
1 0
  1. Make sure , in /etc/apt/source.list.d/, we have php.list
deb https://packages.sury.org/php/ bookworm main 

Enter fullscreen mode Exit fullscreen mode
  1. sudo apt update

  2. after finish update, install php4

sudo apt install php8.4-{bcmath,fpm,mysql, zip, cli, bz2,intl,ldap,soap, opcache,curl, dom, gd}
Enter fullscreen mode Exit fullscreen mode
  1. change from php 83.x to php 84.x
 sudo update-alternatives --config php
Enter fullscreen mode Exit fullscreen mode

Comments 0 total

    Add comment