Hello all, I brought another tutorial for upgrading PHP version. A few weeks ago, I wrote another tut about upgrading to 7.2. But, in few week, I had to upgrade to PHP 7.3 to run composer package. So, this is the way I did.

Check the PHP Version

php -v


Add repository to install PHP 7.3

add-apt-repository ppa:ondrej/php


Run an Update

apt-get update


Install PHP 7.3

apt install php7.3


Install all the required packages for PHP 7.3

apt install php7.3-common php7.3-cli php7.3-bz2 php7.3-curl php7.3-gd php7.3-intl php7.3-json php7.3-readline php7.3-xml php7.3-zip php7.3-fpm php7.3-bcmath php7.3-mbstring


Disable and Enable PHP version

a2dismod php7.2
a2enmod php7.3


Restart APACHE

service apache2 restart


Check the latest PHP version

php -v


Write A Comment