Jump to content
Limestone de cara nova! ×
Portal do Host

Configurar php-fpm no nginx


Jean Moura
 Share

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

 

 

Link to comment
Share on other sites


  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information