LNMP Upgrade PHP 502 Bad Gateway Error

Source: Internet
Author: User
Tags fpm
LNMP upgrade php5.4.28 or later version error 502 bad Gateway
Encounter a very strange problem, with LNMP./upgrade_php.sh upgrade php5.4.27 normal.
But upgrade to php5.4.28 error, Access p.php hint: Nginx 502 bad Gateway. Try again in the morning, upgrade to 5.5.12 access p.php is also the same hint: Nginx 502 Bad Gateway
The prompts for the upgrade are all successful, PHP-FPM also prompts to start successfully.

But access to the p.php page on the tip: 502, is not PHP 5.4.28 version of the installation configuration changes.

Environment:
CentOS 6.5 x86_64
Nginx 1.60
MySQL 5.5

Workaround:
Add listen underneath the/usr/local/php/etc/php-fpm.conf.
Listen.backlog =-1
Listen.allowed_clients = 127.0.0.1
Listen.owner = www
Listen.group = www
Listen.mode = 0666
Restart PHP-FPM

Test problem resolution.

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.