繁体   English   中英

Magento2安装程序破坏了会话并注销

[英]Magento2 setup destroys the session and logs out

因此,我在nginx机器上安装了Magento 2.0.5 CE。 一切顺利。 现在,我可以登录到管理面板并浏览。

但是,一旦我访问http://example.com/setup,它会将我重定向到../setup/index.php/session/unlogin,并显示消息“访问被拒绝”。 并破坏了当前会话,迫使我重新登录到管理面板。 即使清除了所有缓存,重新启动nginx并重复上述步骤,也会发生同样的情况。 金田现在卡在这里了

2016/04/29 06:41:47 [error] 4808#0: *188 FastCGI sent in stderr: "Access to the script '/var/www/magento/setup/index.php/session/unlogin' has been denied (see security.limit_extensions)" while reading response header from upstream, client: *.*.*.246, server: example.com, request: "GET /setup/index.php/session/unlogin HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "www.example.com"
2016/04/29 06:41:48 [error] 4808#0: *188 FastCGI sent in stderr: "Access to the script '/var/www/magento/setup/index.php/session/unlogin' has been denied (see security.limit_extensions)" while reading response header from upstream, client: *.*.*.246, server: example.com, request: "GET /setup/index.php/session/unlogin HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "www.example.com"

尝试从更改/etc/php5/fpm/pool.d/www.conf

; security.limit_extensions = .php .php3 .php4 .php5

security.limit_extensions = .php .php3 .php4 .php5

没运气 :(

救命!

改变中

cgi.fix_pathinfo=0

cgi.fix_pathinfo=1

php.ini内部解决了该问题。 但是,我将避免使用此选项,如果有人有更安全的解决方案,请耐心等待。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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