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

hutuyun-ad-banner.png ai-qy.gif

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

评论 抢沙发

合作&反馈&投稿

商务合作、问题反馈、投稿,欢迎联系

广告合作侵权联系