w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
LEMP + Wordpress Setup Failing

You need to tell nginx to proxy your PHP request back to php-fpm. See this.

Excerpt:

# Pass PHP scripts to PHP-FPM
location ~* .php$ {
  fastcgi_index   index.php;
  fastcgi_pass    127.0.0.1:9000;
  #fastcgi_pass   unix:/var/run/php-fpm/php-fpm.sock;
  include         fastcgi_params;
  fastcgi_param   SCRIPT_FILENAME    $document_root$fastcgi_script_name;
  fastcgi_param   SCRIPT_NAME        $fastcgi_script_name;
}




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.