今天看到新闻,PHP 语言爆出 multipart/form-data 远程 DOS 漏洞。
所有就升级 PHP 套件。
因为人太懒了,技术菜鸟,所以采用了apt-get upgrade 的方法,
升级后,好像有看到提示 Nginx 配置替换的提示,选择了NO,
之后为题就来了,所以动态页面都变成了空白,动态页面没有问题。
所有问题出在 PHP 的解析上,尝试过几种方法,终于找到了问题所在:
原来新版 Nginx 的配置在 PHP 的解析上有了少许变化。
旧版是这个样子:
location ~ \.php${ fastcgi_pass unix:/tmp/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; }
新版是这个样子:
location ~ \.php${ fastcgi_pass unix:/tmp/php5-fpm.sock; fastcgi_index index.php; include fastcgi.conf; }
参考:http://www.jjhr.net/2015/01/debian-7-nginx-1-2-to-1-6-upgrade-process-and-the-page-blank-solution/