Difference between revisions of "Downgrading to PHP 7.4"
Jump to navigation
Jump to search
(Created page with "==Downgrading from php8.0 to PHP7.4== // Enable PPA for PHP 7.4 in your system and install it. sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get install php7.4 sudo apt-get install php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-mysql php7.4- mbstring php7.4-zip php7.4-fpm php7.4-intl php7.4-simplexml // a2dismod disables the php8.0 module by removing those symlinks. sudo a2dismod php8.0 // a2enmod enables php7.4 module with...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
==Downgrading from php8.0 to PHP7.4== | ==Downgrading from php8.0 to PHP7.4== | ||
// Enable PPA for PHP 7.4 in your system and install it. | // Enable PPA for PHP 7.4 in your system and install it. | ||
add-apt-repository ppa:ondrej/php | |||
sudo apt-get update | sudo apt-get update | ||
sudo apt-get install php7.4 | sudo apt-get install php7.4 | ||
sudo apt-get install php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-mysql php7.4- | sudo apt-get install php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-mysql php7.4-mbstring php7.4-zip php7.4-fpm php7.4-intl php7.4-simplexml | ||
// a2dismod disables the php8.0 module by removing those symlinks. | // a2dismod disables the php8.0 module by removing those symlinks. | ||
Line 14: | Line 14: | ||
sudo a2enmod php7.4 | sudo a2enmod php7.4 | ||
NOTICE: To enable PHP 7.4 FPM in Apache2 do: | |||
a2enmod proxy_fcgi setenvif | |||
a2enconf php7.4-fpm | |||
// Restart apache2 service. | // Restart apache2 service. | ||
sudo service apache2 restart | sudo service apache2 restart |
Latest revision as of 16:06, 31 May 2022
Downgrading from php8.0 to PHP7.4
// Enable PPA for PHP 7.4 in your system and install it.
add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get install php7.4 sudo apt-get install php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-mysql php7.4-mbstring php7.4-zip php7.4-fpm php7.4-intl php7.4-simplexml
// a2dismod disables the php8.0 module by removing those symlinks.
sudo a2dismod php8.0
// a2enmod enables php7.4 module within the apache2 configuration.
sudo a2enmod php7.4
NOTICE: To enable PHP 7.4 FPM in Apache2 do:
a2enmod proxy_fcgi setenvif
a2enconf php7.4-fpm
// Restart apache2 service.
sudo service apache2 restart
// Set alternative name path.
sudo update-alternatives --set php /usr/bin/php7.4 sudo update-alternatives --set phar /usr/bin/phar7.4 sudo update-alternatives --set phar.phar /usr/bin/phar.phar7.4 sudo update-alternatives --set phpize /usr/bin/phpize7.4 sudo update-alternatives --set php-config /usr/bin/php-config7.4