Last active
September 20, 2022 21:18
-
-
Save donaldsteele/70da3c21926c8ce340070738e5c3139a to your computer and use it in GitHub Desktop.
install php8
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
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/sury-php.list | |
wget -qO - https://packages.sury.org/php/apt.gpg | sudo apt-key add - | |
apt update | |
apt install -y php8.0 php8.0-fpm | |
apt install -y php8.0 php8.0-fpm php8.0-cli php8.0-common php8.0-fpm php8.0-bcmath php8.0-mbstring php8.0-xml php8.0-curl php8.0-zip php8.0-gd php8.0-redis php8.0-mysql php8.0-imagick php8.0-tidy php8.0-xmlrpc php8.0-intl | |
apt-get autoremove | |
sed -i 's/php7.4/php8.0/g' /etc/nginx/sites-enabled/default | |
cat /etc/php/7.4/fpm/php.ini > /etc/php/8.0/fpm/php.ini |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment