Debian 下轻松实现 PHP 多版本共存
/php/php7.2-fpm.sock; fastcgi_index index.php; include fastcgi.conf; fastcgi_param PHP_VALUE "open_basedir=$document_root:/tmp/:/proc/"; } 在需要使用 PHP5.6 的虚拟主机下使用: ##PHP location ~ \.php$ { fastcgi_pass unix:/run/php/php5.6-fpm.sock; fastcgi_index index.php; include fastcgi.conf; fastcgi_param PHP_VALUE "open_basedir=$document_root:/tmp/:/proc/"; } 然后重启...阅读全文