Upgrade Ubuntu1204 to nginx1.6.1 to parse the php file.

Source: Internet
Author: User
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/

?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.