Last active
July 4, 2020 16:26
-
-
Save xsolon/a6bff1d7b9322681e1af6dad97063a42 to your computer and use it in GitHub Desktop.
php 4.7 upgrade
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# setup sury.org repository | |
apt-get install apt-transport-https -y | |
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg | |
echo "deb https://packages.sury.org/php/ stretch main" | tee /etc/apt/sources.list.d/php.list | |
# install php7.4 modules | |
apt-get install -y php7.4-{bcmath,bz2,intl,gd,mbstring,mysql,zip} | |
# install apache module | |
apt-get install libapache2-mod-php7.4 | |
apt-get update | |
a2dismod php7.0 # disable previous apache module version | |
a2enmod php7.4 # enable php7.4 apache module | |
apt upgrade # upgrade packages | |
apt autoremove # remove obsolete packges | |
service apache2 restart # restart apache |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment