我在 Fedora Server 22 上运行 nginx 并且 fastcgi 脚本不起作用。
在http://panel.minefight.org/ 下输入任何登录数据,它不会加载密码失败或成功站点。其他登录表单也会发生同样的事情。服务器没有重定向用户,我不知道如何解决这个问题。我希望这个例子容易理解。
testpage 说,fastcgi 正在运行并与 nginx 连接。
php-fpm.conf:
upstream php-fpm {
server unix:/run/php-fpm/www.sock;
}
Run Code Online (Sandbox Code Playgroud)
php.conf:
index index.php index.html index.htm;
location ~ \.php$ {
try_files $uri =404;
fastcgi_intercept_errors on;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass php-fpm;
}
Run Code Online (Sandbox Code Playgroud)
错误日志包含以下内容(尝试登录游戏面板时):
2015/05/30 22:15:57 [error] 1911#0: *1 FastCGI sent in stderr: "PHP message: PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli …Run Code Online (Sandbox Code Playgroud)