Clicky

Jump to content
Portal do Host
  • Sign Up

Sign in to follow this  
Jean Moura

Configurar php-fpm no nginx

Recommended Posts

Pessoal,

Poderiam me ajudar com essa dúvida abaixo:

Tenho o PHP-FPM instalado no meu apache, porem quando adiciono a linha abaixo no arquivo "default.conf" do Nginx dá erro de (Bad Gateway)

 

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000

        location ~ \.php$ {
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                fastcgi_pass unix:/var/run/php56-fpm.sock;
                fastcgi_index index.php;
                include fastcgi_params;

 

Não estou conseguindo colocar o Nginx para funcionar com o PHP-FPM

 

Abraço

Jean

 

 

Share this post


Link to post
Share on other sites
15 minutos atrás, patrickheinz disse:

Confirma se o php-fpm está rodando:


service php5-fpm status

Se não estiver, reinicie ele:


service php5-fpm restart

 

ta rodando

Share this post


Link to post
Share on other sites
Tenho o PHP-FPM instalado no meu apache

 

provavelmente você está seguindo tutorial LEMP sendo que está usando proxy reverso.
até rola, mas tem de saber sua configuração

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.



×
×
  • Create New...