PHP-FPM and Nginx: 502 Bad Gateway

后端 未结 15 1997
闹比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 19:13

    Maybe this answer will help:

    nginx error connect to php5-fpm.sock failed (13: Permission denied)

    The solution was to replace www-data with nginx in /var/www/php/fpm/pool.d/www.conf

    And respectively modify the socket credentials:

    $ sudo chmod nginx:nginx /var/run/php/php7.2-fpm.sock
    

提交回复
热议问题