第一次安装 显示白页

问题咨询 · owen · 于 6年前 发布 · 1882 次阅读

打开http://apphtml5.fecshoptest.com/ 显示白页,nginx没有error日志,另外测试数据我没有导入(也就是http://www.fecshop.com/doc/fecshop-guide/develop/cn-1.0/guide-fecshop-about-config.html 这个文档中步骤5以后都没有执行) 浏览器的console显示http 是200状态

hosts绑定: 127.0.0.1 appfront.fecshoptest.com

nginx配置: server {

listen     80  ;
server_name appfront.fecshoptest.com appfront.fecshoptest.es;
root  /root/fecshop/fecshop/appfront/web;
server_tokens off;
index index.php index.html index.htm;
access_log /root/fecshop/logs/access.log main;
error_log  /root/fecshop/logs/error.log;
location ~ \.php$ {
    fastcgi_pass   127.0.0.1:9000;
    fastcgi_index  index.php;
}

location ~ /sitemap.xml{
	if ($host  ~ .*appfront.es.fecshop.com) {
	rewrite ^/sitemap\.xml /sitemap_es.xml last;
	}
}

location /fr/ {
	index index.php;
	if (!-e $request_filename){
	rewrite . /fr/index.php last;
	}
}

location /es/ {
	index index.php;
	if (!-e $request_filename){
	rewrite . /es/index.php last;
	}
}

location /cn/ {
	index index.php;
	if (!-e $request_filename){
	rewrite . /cn/index.php last;
	}
}

location /de/ {
    index index.php;
    if (!-e $request_filename){
            rewrite . /de/index.php last;
    }
}

location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {
        expires      30d;
}

location ~ .*\.(js|css)?$ {
        expires      12h;
}

}

共收到 4 条回复
Fecmall#16年前 0 个赞

打开 @app/web/index.php 把 error_reporting(E_ALL || ~E_NOTICE); 注释掉看看,估计是你的数组配置出问题了。

owen#26年前 0 个赞

还是白页 通过在web目录下 创建index.html 可以正常显示 创建a.php, 里面简单的echo 也是白页,估计是php哪里有问题, 我自己先研究下

Fecmall#36年前 0 个赞

你加断点 exit;试试,从入口文件index.php开始。看看到底哪个位置出问题了

Fecmall#46年前 0 个赞

@owen #2楼 解决了,在这里回复一下问题的原因,以及解决的方式

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics