Wordpress在useradd上显示空白页 - Nginx,HHVM,MariaDB

时间:2017-02-08 08:09:46

标签: wordpress nginx hhvm

现在我遇到了以下问题: 总是当我尝试添加用户或重置密码时,我只会被重定向到空白页面。 首先我认为这是sendmail或nginx-redirect的问题(这是我第一次使用nginx设置)。但是这两种方法都是在我自己编写的test.php文件中工作的。

wordpress调试标志也没有任何帮助,因为空白页面上没有输出。我在不同的浏览器中尝试过,但总是有相同的结果。

我的设置与此Tutorial非常相似。我添加了sendmail包。我的nginx sites-available / default看起来像这样:

server {
  server_name www.***.de;
  rewrite ^ http://***.de$request_uri? permanent;
}
# Default server configuration
#
server {
        listen 80 default_server;
        listen [::]:80 default_server;

        # SSL configuration
        #
        # listen 443 ssl default_server;
        # listen [::]:443 ssl default_server;
        #
        # Note: You should disable gzip for SSL traffic.
        # See: https://bugs.debian.org/773332
        #
        # Read up on ssl_ciphers to ensure a secure configuration.
        # See: https://bugs.debian.org/765782
        #
        # Self signed certs generated by the ssl-cert package
        # Don't use them in a production server!
        #
        # include snippets/snakeoil.conf;

        root /var/www/html;

        # Add index.php to the list if you are using PHP
        index index.php index.html index.htm index.nginx-debian.html;

        server_name _;
        include hhvm.conf;

        location = /favicon.ico {
                log_not_found off;
                access_log off;
        }

        location = /robots.txt {
                allow all;
                log_not_found off;
                access_log off;
        }

        location / {
                # This is cool because no php is touched for static content.
                # include the "?$args" part so non-default permalinks doesn't break when using query string
               try_files $uri $uri/ /index.php?$args;
        }

        location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
                expires max;
                log_not_found off;
        }

        location ~ \.php$ {
#            error_page 418 = @rewrite;
#            recursive_error_pages on;
             try_files $uri =404;
            fastcgi_split_path_info ^[^=](.+\.php)(/.+)$;
            include fastcgi_params;

            if ( $uri = /index.php ) {
                    break;
            }

#            if ( !-e $document_root$fastcgi_script_name) {
#                    return 418;
#            }

            #NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            fastcgi_intercept_errors on;
            fastcgi_read_timeout 240;
            fastcgi_pass  127.0.0.1:9000;
        }
}

非常感谢你的帮助。

- l1am0

1 个答案:

答案 0 :(得分:0)

我没有找到错误,但设法安装了设置:WordPress,Nginx,HHVM,Letsencrypt

通过以下步骤完成:

  • apt-get update&& apt-get -y upgrade
  • apt-get install sendmail mailutils
  • 其余设置由:https://easyengine.io/
  • 完成

BR