apt install ca-certificates apt-transport-https
wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add -
echo "deb https://packages.sury.org/php/ stretch main" | sudo tee /etc/apt/sources.list.d/php.list
apt-get update
dpkg -l | grep php | tee packages.txt
apt install libapache2-mod-php7.2 php-common php7.2 php7.2-cli php7.2-common php7.2-curl php7.2-gd php7.2-intl php7.2-json php7.2-ldap php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-pspell php7.2-readline php7.2-soap php7.2-xml php7.2-xmlrpc php7.2-zip php7.2-fpm
a2enconf php7.2
a2enmod php7.2
sudo apt purge php7.0*
沒有留言:
張貼留言