Ubuntu12.10 silent php5-fpm installation without listening to Port 9000, nginx cannot link php5-fpm correction

Source: Internet
Author: User
Ubuntu12.10 default installation php5-fpm no listening port 9000, nginx cannot link php5-fpm fix upgrade to ubuntu12.10 nginx reported 502 error, php cannot run. Netstat-an does not find listening to Port 9000. View the varlogphp5-fpm.log everything works. Then view etcphp5fpmpool. dwww. co ubuntu 12.10 default installation php5-fpm no listening port 9000, nginx cannot link php5-fpm correction
After upgrading to ubuntu 12.10, nginx reports a 502 error and php cannot run.
Netstat-an does not find listening to Port 9000.
View/var/log/php5-fpm.log everything works.
View/etc/php5/fpm/pool. d/www. conf and find listen =/var/run/php5-fpm.sock.

Modify sites configuration in nginx
Location ~ \. Php $ {
Fastcgi_pass 127.0.0.1: 9000;
Fastcgi_index index. php;
Fastcgi_param APPLICATION_ENV production;
Include fastcgi_params;
}

Is
Location ~ \. Php $ {
Fastcgi_pass unix:/var/run/php5-fpm.sock;
Fastcgi_index index. php;
Fastcgi_param SCRIPT_FILENAME $ document_root $ fastcgi_script_name;
Include fastcgi_params;
}

Restart the php5-fpm and nginx and restore.

Caige's blog

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.