nginx and php-fpm socket owner

前端 未结 7 1374
孤城傲影
孤城傲影 2020-12-24 14:27

After an update of my system I ran into a bad gateway error of my PHP apps running on Nginx.

1 connect() to unix:/var/run/php-fcgi-vhostname-php-fcgi-

7条回答
  •  死守一世寂寞
    2020-12-24 15:04

    Just do it anything else

    My Config Vagrant / Ubuntu 16 / Nginx 1.13 / PHP-FPM 7.1

    sudo vi /etc/nginx/nginx.conf
    

    Change first line user nginx => user www-data

    service nginx restart
    

提交回复
热议问题