Magento 2.3 Web 安装向导空白
Magento 2.3 Web Setup Wizard Blank
在 Magento 2.3.2 管理面板中转到系统 -> Web 设置向导时,我得到一个空白页面(准确地说,有一个导航器背景栏)。
我通过chrome的开发工具查了一下,找到了那些403响应
GET http://mysite/setup/index.php/navigation 403 (Forbidden)
Possibly unhandled rejection: {"data":"Access denied.\n","status":403,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"index.php/navigation","headers":{"Accept":"application/json, text/plain, */*","Cache-Control":"no-cache, no-store, must-revalidate","Pragma":"no-cache","Expires":0}},"statusText":"Forbidden","xhrStatus":"complete"}
GET http://mysite/setup/index.php/navigation/side-menu 403 (Forbidden)
GET http://mysite/setup/index.php/navigation/header-bar 403 (Forbidden)
POST http://mysite/setup/index.php/session/prolong 403 (Forbidden)
好像权限有问题。我检查了 /setup 下的所有目录,但应该没问题
我的nginx配置如下,
root $MAGE_ROOT/pub;
index index.php;
autoindex off;
charset UTF-8;
error_page 404 403 = /errors/404.php;
#add_header "X-UA-Compatible" "IE=Edge";
# PHP entry point for setup application
location ~* ^/setup($|/) {
root $MAGE_ROOT;
location ~ ^/setup/index.php {
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_param PHP_FLAG "session.auto_start=off \n suhosin.session.cryptua=off";
fastcgi_param PHP_VALUE "memory_limit=756M \n max_execution_time=600";
fastcgi_read_timeout 600s;
fastcgi_connect_timeout 600s;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ ^/setup/(?!pub/). {
#deny all;
}
location ~ ^/setup/pub/ {
add_header X-Frame-Options "SAMEORIGIN";
}
}
我在网上搜索但没有找到答案。任何提示将不胜感激,谢谢!
终于找到原因了,index.php没有执行权限。所以添加它:
chmod +x setup/index.php
问题解决了。
在 Magento 2.3.2 管理面板中转到系统 -> Web 设置向导时,我得到一个空白页面(准确地说,有一个导航器背景栏)。
我通过chrome的开发工具查了一下,找到了那些403响应
GET http://mysite/setup/index.php/navigation 403 (Forbidden)
Possibly unhandled rejection: {"data":"Access denied.\n","status":403,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"index.php/navigation","headers":{"Accept":"application/json, text/plain, */*","Cache-Control":"no-cache, no-store, must-revalidate","Pragma":"no-cache","Expires":0}},"statusText":"Forbidden","xhrStatus":"complete"}
GET http://mysite/setup/index.php/navigation/side-menu 403 (Forbidden)
GET http://mysite/setup/index.php/navigation/header-bar 403 (Forbidden)
POST http://mysite/setup/index.php/session/prolong 403 (Forbidden)
好像权限有问题。我检查了 /setup 下的所有目录,但应该没问题
我的nginx配置如下,
root $MAGE_ROOT/pub;
index index.php;
autoindex off;
charset UTF-8;
error_page 404 403 = /errors/404.php;
#add_header "X-UA-Compatible" "IE=Edge";
# PHP entry point for setup application
location ~* ^/setup($|/) {
root $MAGE_ROOT;
location ~ ^/setup/index.php {
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_param PHP_FLAG "session.auto_start=off \n suhosin.session.cryptua=off";
fastcgi_param PHP_VALUE "memory_limit=756M \n max_execution_time=600";
fastcgi_read_timeout 600s;
fastcgi_connect_timeout 600s;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ ^/setup/(?!pub/). {
#deny all;
}
location ~ ^/setup/pub/ {
add_header X-Frame-Options "SAMEORIGIN";
}
}
我在网上搜索但没有找到答案。任何提示将不胜感激,谢谢!
终于找到原因了,index.php没有执行权限。所以添加它:
chmod +x setup/index.php
问题解决了。