河汉清且浅,牵牛敦而纯

Debian/Ubuntu切换apache+php-fpm模式

安装FastCGI和php-fpm
apt install -y libapache2-mod-fcgid php-fpm

source envvars
apachectl -M
apache2 -V

phpv=`php -v`
phpv=${phpv:4:3}
a2enconf php${phpv}-fpm
a2dismod php${phpv}
a2dismod mpm_prefork
a2enmod mpm_event
a2enmod proxy
a2enmod proxy_fcgi
systemctl restart apache2

 

posted on 2024-01-25 16:07  伊索  阅读(34)  评论(0编辑  收藏  举报