Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/270.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php nginx+;vbulletin 500登录时出错_Php_Nginx_Vbulletin - Fatal编程技术网

Php nginx+;vbulletin 500登录时出错

Php nginx+;vbulletin 500登录时出错,php,nginx,vbulletin,Php,Nginx,Vbulletin,所以,我很快就要启动一个社区,一个运行im的论坛软件vBulletin。但我有一个奇怪的问题,我不知道是什么 我在计算机上本地设置了vbulltin论坛。我的环境是nginx1.9.13、php5.6.9、vBulletin 4.2.3。 我以完全相同的方式设置web服务器,打包我的nginx目录并将其上载到服务器。已下载PHP5.6.20(最新版本)。导入数据库,站点已启动,非常好。我去登录,我得到500个错误。错误日志中也没有存储任何内容。我尝试使用不同版本的php,甚至是与本地版本相同的p

所以,我很快就要启动一个社区,一个运行im的论坛软件
vBulletin
。但我有一个奇怪的问题,我不知道是什么

我在计算机上本地设置了
vbulltin
论坛。我的环境是
nginx1.9.13、php5.6.9、vBulletin 4.2.3。

我以完全相同的方式设置web服务器,打包我的
nginx
目录并将其上载到服务器。已下载
PHP5.6.20
(最新版本)。导入数据库,站点已启动,非常好。我去登录,我得到500个错误。错误日志中也没有存储任何内容。我尝试使用不同版本的php,甚至是与本地版本相同的php,但在登录post请求时仍然出现500个错误

我的
nginx
config

worker_processes  4;

#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

#pid        logs/nginx.pid;

events {
    worker_connections  8096;
    multi_accept on;
    #use epoll; # not supported on windows
}
worker_rlimit_nofile 40000;

http {
    include       mime.types;
    default_type  application/octet-stream;

    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
    #                  '$status $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';

    access_log off;
    error_log I:\\webServer\\nginx\\logs\\error.log;

    sendfile on;
    tcp_nopush on;
    tcp_nodelay on;
    keepalive_timeout 15;
    types_hash_max_size 2048;
    #server_tokens off;

    server_names_hash_bucket_size 64;

    gzip on;
    gzip_static on;
    gzip_min_length 1024;
    gzip_proxied expired no-cache no-store private auth;
    gzip_types text/html text/plain text/css text/xml text/javascript application/atom+xml application/javascript application/json application/rss+xml application/xml+rss application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/svg+xml image/x-icon text/x-component;
    open_file_cache          max=2000 inactive=20s;
    open_file_cache_valid    60s;
    open_file_cache_min_uses 5;
    open_file_cache_errors   off;

    server {
        listen       80;
        server_name  localhost;
        root "I:\\webServer\\nginx\\www\\root";
        charset utf-8;


        location / {
            rewrite ^/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ /dbseo_getsitemap.php?sitemap=$1 last;
            try_files $uri $uri/ /dbseo.php?$args;
            #try_files $uri $uri/ /index.php?$query_string;
            index  index.html index.htm index.php;
        }

        error_page  404              /404.html;

        # redirect server error pages to the static page /50x.html
        #
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   www;
        }

        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
        #
        location ~ \.php$ {
            fastcgi_pass   127.0.0.1:9123;
            fastcgi_index  index.php;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            include        fastcgi_params;
            fastcgi_intercept_errors off;
            fastcgi_buffer_size 128k;
            fastcgi_buffers 256 16k;
            fastcgi_busy_buffers_size 256k;
            fastcgi_temp_file_write_size 256k;
            fastcgi_connect_timeout 60;
            fastcgi_send_timeout 60;
            fastcgi_read_timeout 60;
        }

        # deny access to .htaccess files, if Apache's document root
        # concurs with nginx's one
        #
        location ~ /\.ht {
            deny  all;
        }
    }
    client_max_body_size 20M;
}
唯一不同的是操作系统(
windowsserver2008r2
)和
MySQL
数据库,而
MySQL
也没有显示错误


我认为所有POST请求都有问题,但由于我唯一可以猜测的POST请求是登录,所以我无法验证它是孤立于
login.php
还是所有
POST
请求。

更新:我让它工作了,我忘了启用php\u openssl.dll扩展。vBulltin使用此选项设置密码


发布供可能遇到此问题的其他人参考。

唯一的问题是您无法登录?你可以访问的其他页面?nginx或PHP错误日志没有显示任何内容?是的,我可以通过发送帖子时的500错误登录正常访问该页面,但我不知道它是否只是该页面,或者它的帖子请求,因为登录是你作为访客可以执行的唯一帖子。那么你的代码中有一个错误。。。与您的nginx配置无关(编辑或删除您的问题,并发布您的登录尝试相关代码)aldanux就是这样,它在我的本地环境中运行绝对正常。vBulletin在代码中没有错误,至少登录部分没有。