
How to add PHP 8.3 in ubuntu WSL without removing existing php versions
sudo apt update
sudo apt install -y software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
Run the following command to install PHP 8.3
sudo apt install -y php8.3
Install PHP 8.3 Extensions (Optional)
sudo apt install -y php8.3-{cli,curl,mbstring,xml,zip,gd,mysql}
Verify PHP 8.3 Installation
Check the installed version of PHP 8.3
php8.3 -v
If you want to switch between different installed PHP versions (e.g., 8.1, 8.2, 8.3), use the following commands
sudo update-alternatives --config php
If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.
Don't forget to share this article! Help us spread the word by clicking the share button below.
We appreciate your support and are committed to providing you valuable and informative content.
We are thankful for your never ending support.
Random Code Snippet Queries: Cmd
- Change permissions to var/www/html directory to edit the code in var/www/html directory
- How to switch from php8.1 to php8.2 version in ubuntu
- Uninstall kali-win-kex
- Install phpmyadmin on ubuntu WSL
- WSL copy file from windows downloads directory to home directory in ubuntu
- How to delete a directory using the command in window ?
- Best way to switch php version in ubuntu