DEV Community

hardyweb
hardyweb

Posted on • Edited on

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

  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

Top comments (0)