繁体   English   中英

NGINX上的Magento-管理员仅显示空白屏幕

[英]Magento on NGINX - Admin only shows blank screen

我正在使用Apache2的服务器上将正常工作的magento迁移正常。 但是在NGINX上,管理门户不起作用。

登录时,它显示一个空白屏幕,我的URL更改为mysite / index.php / admin / index / index / key / 1a18935bc65e514d379f18c123c2c2e9 /

我可以在开发工具上看到最多生成一个cookie。

屏幕上没有错误,日志上也没有生成异常。

太沉默了

有什么线索吗?

顺便说一句...这是我在NGINX上的配置文件

server {
listen 80;

root /usr/share/nginx/dev.unicase.com.br;
index index.html index.htm;

# Make site accessible from http://localhost/
server_name name.of.my.server;

location / {
 try_files $uri $uri/ @handler;
}

location @handler { ## Magento uses a common front handler
    rewrite / /index.php;
}

location ~ .php/ { ## Forward paths like /js/index.php/x.js to relevant handler
    rewrite ^(.*.php)/ $1 last;
}

location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}

任何灯?? ty!

PHP版本5.5.9-1ubuntu4.4

Magento的:1.8.0

首先要做的是进入/ var / log / nginx并检出error.log-

纳米error.log

如果它与扩展名有关,例如curl,请确保您运行以下内容

apt-get update
apt-get install php5-(put name of extension here) it could be php5-gd php5-curl php5-mcrypt but make sure you run apt-get update FIRST.

如果没有其他问题,请发布该错误日志!

另外,您需要从根目录删除路径-您仍然可以通过该路径查看网站。

暂无
暂无

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

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