欢迎光临
感受代码之美

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)
未经允许禁止转载:四个空格 » Debian 10安装Php8-fpm(去除apache)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址