DEV Community

hardyweb
hardyweb

Posted on

1

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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay