upgrade php 7.2 to 7.4 code example
Example 1: upgrade php 7.3 centos 7
sudo yum -y install http:
sudo yum -y install epel-release yum-utils
sudo yum-config-manager --disable remi-php54
sudo yum-config-manager --enable remi-php73
sudo yum update
chmod -R 777 vendor
php artisan view:clear
php artisan config:cache
sudo chgrp www-data storage -R (Note: www-data is apache on Centos 7)
sudo chmod g+rwx storage -R
if still doesn't work try:
sudo setfacl -R -d -m g::rwx storage
Example 2: upgrade php to 7.3 ubuntu
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y php7.3