Home » Default » Debian10 安装PHP5 MYSQL5

Debian10 安装 PHP5

apt-get install apt-transport-https lsb-release ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php5.list
apt-get update
apt-get install php5.6 php5.6-mysql php5.6-xml php5.6-zip php5.6-json php5.6-gd php5.6-bcmath
update-alternatives --config php //可选,用于系统中多个PHP版本之间的切换

Debian10 安装 mysql5

wget https://dev.mysql.com/get/mysql-apt-config_0.8.15-1_all.deb
dpkg -i mysql-apt-config_0.8.15-1_all.deb //进行版本选择
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 467B942D3A79BD29
apt-get update
apt install -y mysql-community-server

标签: PHP Debian mysql5

添加新评论

V