PHP-FPM and Nginx: 502 Bad Gateway

后端 未结 15 1889
闹比i
闹比i 2021-01-29 18:35

Configuration

  • Ubuntu Server 11.10 64 bit
  • Amazon AWS, Ec2, hosted on the cloud
  • t1.micro instance

Before I write an

15条回答
  •  無奈伤痛
    2021-01-29 18:52

    If you met the problem after upgrading php-fpm like me, try this: open /etc/php5/fpm/pool.d/www.conf uncomment the following lines:

    listen.owner = www-data
    listen.group = www-data
    listen.mode = 0666
    

    then restart php-fpm.

提交回复
热议问题