fecmall nginx安装报错:Base table or view not found: 1146 Table 'shop.extensions' doesn't exist

安装报错 · Fecmall · 于 10天前 发布 · 97 次阅读

有一些童鞋nginx安装fecmall报错: Base table or view not found: 1146 Table 'shop.extensions' doesn't exist

譬如帖子:http://www.fecmall.com/topic/2126

这个是nginx配置的问题,需要加入配置

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

注意,这个配置需要加入上面

加完后的nginx配置(例子):

server {
    listen       80;
    server_name  appfront.fecshoptest.com;
    root  /www/web/develop/fecshop/appfront/web;
    server_tokens off;
    index index.php index.html index.htm;
    location ~ \.php$ {
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        include fcgi.conf;
    }
    location ~ .php/ { ## Forward paths like /js/index.php/x.js to relevant handler
        rewrite ^(.*.php)/ $1 last;
    }
    location / {
        if (!-e $request_filename){
            rewrite . /index.php last;
        }
    }
    location /fr/ {
        index index.php;
        if (!-e $request_filename){
            rewrite . /fr/index.php last;
        }
    }
    location /cn/ {
        index index.php;
        if (!-e $request_filename){
            rewrite . /cn/index.php last;
        }
    }
    location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {
        expires      30d;
    }
    location ~ .*\.(js|css)?$ {
        expires      12h;
    }
}


完整的nginx配置,您可以参考:http://www.fecmall.com/topic/2101

共收到 0 条回复
没有找到数据。
添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics