2016-04-29 131 views
0

因此,我在nginx機器上安裝了Magento 2.0.5 CE。一切順利。我現在可以登錄到管理面板並瀏覽。Magento2安裝破壞會話並註銷

但是,一旦我訪問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 

沒有運氣:(

幫助!

回答

0

更改

cgi.fix_pathinfo=0 

cgi.fix_pathinfo=1 

在php.ini中解決的問題。不過,我會避免使用此選項,並等待任何人有更安全的解決方案。