简体   繁体   中英

Starting wordpress on nginx debian server

I'm stuck with the installation of Wordpress for Nginx on Debian. The website pointing to my server is mes-affaires.xyz.

Nginx logs are showing 200 responses for any URL from that domain, and appearing all blanks in my browser. That's the difficulty as I'm having no error log of any kind.

Any idea why it's doing this or where I could get a kind of error log?

Now www.mes-affaires.xyz shows nginx default page. Be sure u got config for your site, and u added it in nginx.conf.

If you are using php-fpm, then you need right setting at server directive. For example:

  location ~ \.php$ {
    try_files $uri =404;
    include fastcgi_params;
    fastcgi_pass 127.0.0.1:9000;
    fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
  }

  location ~ /\.ht {
    deny  all;
  }

Especially line

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

must have right configuration and causes white blank page in browser when its missconfigured. Also check

$document_root

variable and ofcourse your log files.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM