Page 1 of 1

How to Install PHP 7.3 in Ubuntu 16.04

Posted: Thu Dec 13, 2018 7:41 am
by shahidirfan
I want to know how to upgrade PHP 7 to 7.3 in Ubuntu 16.04 LTS VestaCP.

Is Ubuntu 18.04 is fully supported in Vestacp? and which version of PHP is come after installing VestaCP on Ubuntu 18.04.

Re: How to Install PHP 7.3 in Ubuntu 16.04

Posted: Fri Jan 11, 2019 2:38 am
by leors
Install the software-properties-common and python-software-properties packages

Code: Select all

sudo apt install software-properties-common python-software-properties
add the Ondřej PPA

Code: Select all

sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
end then update your sources

Code: Select all

apt update
We can install PHP 7.3 with the following command

Code: Select all

sudo apt install php7.3 php7.3-cli php7.3-common
To check if PHP 7.3 is installed on your server, use the command below

Code: Select all

php -v
Output
PHP 7.3.0-2+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Dec 17 2018 09:22:12) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.0-dev, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.0-2+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies

Re: How to Install PHP 7.3 in Ubuntu 16.04

Posted: Wed Feb 06, 2019 12:09 pm
by gemuz
SpoilerShow
leors wrote:
Fri Jan 11, 2019 2:38 am
Install the software-properties-common and python-software-properties packages

Code: Select all

sudo apt install software-properties-common python-software-properties
add the Ondřej PPA

Code: Select all

sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
end then update your sources

Code: Select all

apt update
We can install PHP 7.3 with the following command

Code: Select all

sudo apt install php7.3 php7.3-cli php7.3-common
To check if PHP 7.3 is installed on your server, use the command below

Code: Select all

php -v
Output
PHP 7.3.0-2+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Dec 17 2018 09:22:12) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.0-dev, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.0-2+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
After updating everything works?