Upgrade Ubuntu1204 to nginx1.6.1 resolve php file blank solution: upgrade Ubuntu1204 to nginx1.6.1 resolve php file blank solution ??????? First of all, thanks to Felix ?????? Solve the problem of returning blank pages when DebianWheezy uses Nginx1.6 official package and php-fpm. post Ubuntu 1204 upgrade to nginx 1.6.1 to parse php files blank solution
Upgrade Ubuntu 1204 to nginx 1.6.1 to parse php files. solution:
?
?????? First of all, thanks to Felix.
?????? The solution is found in the post "solving the problem of returning blank pages when Debian Wheezy uses the official Nginx 1.6 package and php-fpm.
??????? Http://blog.felixc.at/2014/05/fix-debian-wheezy-blank-page-issue-when-using-nginx-official-deb-and-php-fpm/
??????
?????? The following are lab equipment and problem descriptions. I want to keep a record for myself and help people who are being troubled.
?????? OS: Ubuntu 12.04 LTS
?????? PHP :? 5.5.16
?????? Nginx: 1.6.1
?????? Problem Description: two days ago, we performed apt-get update to upgrade Nginx and PHP in the system. as a result, we finally accessed the blank page of the php file in the browser, and nginx error. log, php5-fpm.log has no error record, tossing for a day without result.
?????? During this period, nginx and php are uninstalled and reinstalled.
?????? Suspected that there is a problem with the php5-fpm, so modify the/etc/php5/fpm/pool. d/www. conf permission, modify listen, the problem is not resolved.
?????? The problem persists when you modify the nginx server configuration;
??????
?????? Installation method:
???????
$ sudo apt-get install nginx$ sudo apt-get update
?
?????? Today, I saw the Felix Blog to solve the problem.
?????? The solution is as follows:
?????? Edit nginx? Fastcgi_params file
?
?
$ cd /etc/nginx$ sudo vim fastcgi_params
?
?
??? Add the following line at the end of the file:
fastcgi_param SCRIPT_FILENAME $request_filename;
?
???? No such line exists in the default and fastcgi_params files of nginx, which leads to the problem of parsing blank pages in the PHP file.
?
There is also an English article, hoping to help people who need it.
Nginx 1.6 stable fail php-fpm on Debian Wheezy
Web: http://www.milliondollarserver.com/nginx-1-6-stable-fail-php-fpm-on-debian-wheezy/
?