search

Home  >  Q&A  >  body text

php-fpm - The website displays 502 when accessed after configuring nginx+php5.6

After configuring nginx php5.6, the website displays 502

when accessed.
仅有的幸福仅有的幸福2835 days ago790

reply all(3)I'll reply

  • ringa_lee

    ringa_lee2017-05-16 17:21:12

    Not connected to fpm

    reply
    0
  • 怪我咯

    怪我咯2017-05-16 17:21:12

    I think it is better to analyze the specific situation in detail
    Check the error log of nginx, please provide more detailed errors

    Basic personal experience, the fpm link method is wrong, maybe fpm listening port, you use sock, or the other way around

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-16 17:21:12

    Add in main node

    fastcgi_connect_timeout 300;
    fastcgi_send_timeout 300;
    fastcgi_read_timeout 300;
    

    Increase the connection time and this will solve the problem

    reply
    0
  • Cancelreply