DEV Community

hardyweb
hardyweb

Posted on

Update PHP 3.x to PHP 4.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 3.x to php 4.x
 sudo update-alternatives --config php
Enter fullscreen mode Exit fullscreen mode

Top comments (0)