How to Upgrade PHP Version from 8.2 to 8.3 in Ubuntu - TechvBlogs

How to Upgrade PHP Version from 8.2 to 8.3 in Ubuntu

Discover the seamless process of upgrading your PHP version from 8.2 to 8.3 on Ubuntu with our step-by-step guide.


Smit Pipaliya - Author - TechvBlogs
Smit Pipaliya
 

2 months ago

TechvBlogs - Google News

In this concise tutorial, we will walk you through a quick and straightforward process to upgrade PHP from version 8.2 to 8.3 on your Ubuntu system. This guide will provide you with a seamless example, addressing any potential questions you might have about the update. We have streamlined the explanation to make the process of updating PHP from 8.2 to 8.3 on Ubuntu easily understandable and hassle-free.

Simply follow the commands below to effortlessly upgrade PHP from version 8.2 to 8.3 on your Ubuntu operating system:

Add PPA for PHP 8.3

sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update

Install PHP 8.3

sudo apt install php8.3

Install PHP 8.3 Package

sudo apt install php8.3-common php8.3-mysql php8.3-xml php8.3-xmlrpc php8.3-curl php8.3-gd php8.3-imagick php8.3-cli php8.3-dev php8.3-imap php8.3-mbstring php8.3-opcache php8.3-soap php8.3-zip php8.3-intl -y

PHP 8 Enable

sudo a2dismod php8.2
sudo a2enmod php8.3
  
sudo service apache2 restart

Now, verify the PHP version:

php -v

If the previous command still reflects the old PHP version, execute the following command to choose the desired PHP version from the provided list:

sudo update-alternatives --config php

Thank you for reading this tutorial!

Comments (0)

Comment


Note: All Input Fields are required.