Debian下解决LNMP兼容性问题
一、先锁定兼容性与版本基线
二、标准化安装与连通性验证
server {
listen 80 default_server;
root /var/www/html;
index index.php index.html;
server_name _;
location / { try_files $uri $uri/ =404; }
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.x-fpm.sock;
}
location ~ /\.ht { deny all; }
}
三、常见兼容性问题与快速修复
四、升级与多PHP版本的安全做法
五、排障清单与关键日志路径