Debian 10, 9 PHP-FPM 7.4 설치 (deb.sury.org)

(Last Updated On: December 11, 2020)

이 글은 Apache Httpd 사용자를 위한 글이 아닙니다.

지원 아키텍처

  • amd64
  • i386
  • arm64
  • armhf (Raspberry PI 3 / Raspberry PI 4)

1 Enable Sury Repository

sudo apt -y install lsb-release apt-transport-https ca-certificates  && \
sudo 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" | sudo tee /etc/apt/sources.list.d/php.list

2 Install PHP-FPM

sudo apt -y update && sudo apt -y install php7.4-fpm

3 Install Additional Libraries/Modules

sudo apt -y install php7.4-{amqp,apcu,apcu-bc,ast,bcmath,bz2,cgi,cli,common,curl,dba,ds,enchant,gd,geoip,gmp,igbinary,imagick,imap,interbase,intl,json,ldap,lua,mailparse,mbstring,memcached,mongodb,msgpack,mysql,oauth,odbc,opcache,pgsql,ps,pspell,psr,radius,readline,redis,smbclient,snmp,soap,sqlite3,stomp,sybase,tidy,uuid,xdebug,xml,xmlrpc,yaml,zip,zmq}

4 Auto Start

systemctl enable --now php7.4-fpm

(Optional)

apt -y install memcached redis && \
systemctl enable --now memcached redis-server
  • debian 10 기준. memcached LISTEN취약점은 해결되어있음.

References