欢迎光临
我们一直在努力

Debian 10安装Php8-fpm(去除apache)

debian 10默认安装的php是7.3版本,安装php 8的过程如下。

安装php-fpm

sudo apt update -y

sudo apt-get install ca-certificates apt-transport-https software-properties-common -y

sudo echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" |sudo tee /etc/apt/sources.list.d/sury-php.list

sudo wget -qO - https://packages.sury.org/php/apt.gpg | sudo apt-key add -

sudo apt install php8.0-fpm

安装扩展

sudo apt install php8.0-<extension>

参考:

  1. 在Debian系统中APT安装PHP 7.1/7.2/7.3/7.4
  2. How To Install PHP 8.0 on Debian 11/10/9
  3. How to Install PHP 8 on Debian 11
  4. Debian 彻底删除 PHP 7.0
  5. Ubuntu Server Installing PHP 7 WITHOUT Apache
赞(0)
未经允许不得转载:Ddmit » Debian 10安装Php8-fpm(去除apache)

评论 抢沙发

登录

找回密码

注册