lnmp2.0里有个小错误,多版本PHP会报502错误!
我是7.4和8.2多PHP版本共存的,在安装完PHP82后给站点启用就出现502,看了Nginx的error.log竟然是:unix:/tmp/php-cgi8.2.sock failed (2: No such file or directory)报错,最后发现是/usr/local/php8.2/etc/php-fpm.conf文件里:
listen = /tmp/php-cgi8.1.sock改为:
listen = /tmp/php-cgi8.2.sock重启php82:
/etc/init.d/php-fpm8.2 restart搞定!
页:
[1]