How I upgraded to PHP 7.4 in Ubuntu

preview_player
Показать описание
I recently upgraded PHP 7.1 to 7.4 on an Ubuntu Server and recorded the entire process. Below are the commands used in this video. Thanks for watching.

1. sudo add-apt-repository ppa:ondrej/php
2. sudo apt update
3. sudo apt install php7.4
4. sudo apt install $(apt list --installed | grep php7.1 | cut -d'/' -f1 | sed -e 's/7.1/7.4/g')
5. sudo a2enmod proxy_fcgi setenvif
6. sudo a2enconf php7.4-fpm
7. cd /etc/alternatives/
8. sudo rm php
9. sudo ln -s /usr/bin/php7.4 php
10. php --version

► Social Media
Рекомендации по теме
Комментарии
Автор

I enter the command sudo a2enconf php7.4-fpm
I get the error ERROR: Conf php7.4-fpm does not exist!
How to fix the error?
ps Upgrading PHP7.1.33 to PHP7.4 on Ubuntu 18.04

vladlist
Автор

Thanks for your Video, I have Questioned is update of the version of The PHP effect on website performance? and If I have a problem with the update can I restore the old PHP 7.2 version?

Pet-World-TV
Автор

E: No se ha podido localizar el paquete php7.4
E: No se pudo encontrar ningún paquete usando «*» con «php7.4»
E: No se pudo encontrar ningún paquete con la expresión regular «php7.4»

MegaJuandelgado