I
I
igordata12020-07-06 20:37:30
PHP
igordata1, 2020-07-06 20:37:30

How to demolish PHP Version 7.2.24-0 and install 7.3 in order to install laravel 7 on ubuntu?

How to demolish PHP Version 7.2.24-0 and install 7.3 in order to install laravel 7 on ubuntu?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey Gavrilov, 2020-07-06
@thexaver

Apt-get purge php7.2*
Apt-get install php7.3-fpm and other php packages

V
Valdemar Smorman, 2020-07-06
@smorman

I didn't remove the default PHP7.4.3 in 20.04 , but just added the PHP repository and just updated and upgraded the system and got the latest version of PHP7.4.6 .

cd /etc/apt/sources.list.d; echo 'deb http://ppa.launchpad.net/ondrej/php/ubuntu $(lsb_release -cs) main' | sudo tee php.list > /dev/null; sudo apt-key adv --recv-keys --keyserver hkps://keyserver.ubuntu.com:443 4F4EA0AAE5267A6C; cd; sleep 10; sudo apt update; sudo apt full-upgrade

And that's it...
By the way, I did it because the php7.4-json module from PHP7.4.3 is not working.
And from PHP7.4.6 it works.
On 18.04 php7.2-json also works fine...

N
Neill Rinov, 2020-07-09
@rinovnill

Ondřej Surý and his PPA
will help you. And set yourself at least 7.3, at least 7.4, at least at the same time 7.2, 7.3 and 7.4 according to your needs and direct what you need to the right socket as much as you want.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question