本地虚拟机安装出错:An internal server error occurred.

安装报错 · flyyy123 · 于 6年前 发布 · 5426 次阅读

host文件 192.168.1.212 fecshop.dev.com

nginx配置文件

server {
  listen 80;
  server_name fecshop.dev.com;
  #access_log /home/data/wwwlogs/zdt01.dev.com_nginx.log combined;
  index index.php index.html index.htm;
  root /data1/fecshop/appserver/web;

  include /usr/local/nginx/conf/rewrite/none.conf;
  #error_page 404 /404.html;
  #error_page 502 /502.html;

  location ~ [^/]\.php(/|$) {
    #fastcgi_pass remote_php_ip:9000;
    fastcgi_pass unix:/dev/shm/php-cgi.sock;
    fastcgi_index index.php;
    include fastcgi.conf;
  }
  location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|mp4|ico)$ {
    expires 30d;
    access_log off;
  }
  location ~ .*\.(js|css)?$ {
    expires 7d;
    access_log off;
  }
  location ~ /\.ht {
    deny all;
  }
}

报错提示 An internal server error occurred.

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

你先开启develop模式。打开 /data1/fecshop/appserver/web/index.php

defined('YII_DEBUG') or define('YII_DEBUG', false);
defined('YII_ENV') or define('YII_ENV', 'prod');

改为:

defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');

然后看看报错是什么,出现报错自己解决一下试试,如果解决不了,把报错贴在回复里

flyyy123#26年前 0 个赞
An Error occurred while handling another error:
exception 'ReflectionException' with message 'Method fecshop\services\Store::bootstrap() does not exist' in /data1/fecshop/vendor/yiisoft/yii2/web/ErrorHandler.php:195
Stack trace:
#0 /data1/fecshop/vendor/yiisoft/yii2/web/ErrorHandler.php(195): ReflectionMethod->__construct('fecshop\\service...', 'bootstrap')
#1 /data1/fecshop/vendor/yiisoft/yii2/views/errorHandler/callStackItem.php(26): yii\web\ErrorHandler->addTypeLinks('fecshop\\service...')
#2 /data1/fecshop/vendor/yiisoft/yii2/base/View.php(330): require('/data1/fecshop/...')
#3 /data1/fecshop/vendor/yiisoft/yii2/base/View.php(250): yii\base\View->renderPhpFile('/data1/fecshop/...', Array)
#4 /data1/fecshop/vendor/yiisoft/yii2/web/ErrorHandler.php(249): yii\base\View->renderFile('@yii/views/erro...', Array, Object(yii\web\ErrorHandler))
#5 /data1/fecshop/vendor/yiisoft/yii2/web/ErrorHandler.php(304): yii\web\ErrorHandler->renderFile('@yii/views/erro...', Array)
#6 /data1/fecshop/vendor/yiisoft/yii2/web/ErrorHandler.php(326): yii\web\ErrorHandler->renderCallStackItem('/data1/fecshop/...', 23, 'fecshop\\service...', 'bootstrap', Array, 5)
#7 /data1/fecshop/vendor/yiisoft/yii2/views/errorHandler/exception.php(381): yii\web\ErrorHandler->renderCallStack(Object(yii\base\InvalidValueException))
#8 /data1/fecshop/vendor/yiisoft/yii2/base/View.php(330): require('/data1/fecshop/...')
#9 /data1/fecshop/vendor/yiisoft/yii2/base/View.php(250): yii\base\View->renderPhpFile('/data1/fecshop/...', Array)
#10 /data1/fecshop/vendor/yiisoft/yii2/web/ErrorHandler.php(249): yii\base\View->renderFile('@yii/views/erro...', Array, Object(yii\web\ErrorHandler))
#11 /data1/fecshop/vendor/yiisoft/yii2/web/ErrorHandler.php(116): yii\web\ErrorHandler->renderFile('@yii/views/erro...', Array)
#12 /data1/fecshop/vendor/yiisoft/yii2/base/ErrorHandler.php(111): yii\web\ErrorHandler->renderException(Object(yii\base\InvalidValueException))
#13 [internal function]: yii\base\ErrorHandler->handleException(Object(yii\base\InvalidValueException))
#14 {main}
Previous exception:
exception 'yii\base\InvalidValueException' with message 'this domain is not config in store component' in /data1/fecshop/vendor/fancyecommerce/fecshop/services/Store.php:115
Stack trace:
#0 [internal function]: fecshop\services\Store->actionBootstrap(Object(yii\web\Application))
#1 /data1/fecshop/vendor/fancyecommerce/fecshop/services/Service.php(48): call_user_func_array(Array, Array)
#2 /data1/fecshop/vendor/fancyecommerce/fecshop/components/Store.php(23): fecshop\services\Service->__call('bootstrap', Array)
#3 /data1/fecshop/vendor/fancyecommerce/fecshop/components/Store.php(23): fecshop\services\Store->bootstrap(Object(yii\web\Application))
#4 /data1/fecshop/vendor/yiisoft/yii2/base/Application.php(320): fecshop\components\Store->bootstrap(Object(yii\web\Application))
#5 /data1/fecshop/vendor/yiisoft/yii2/web/Application.php(69): yii\base\Application->bootstrap()
#6 /data1/fecshop/vendor/yiisoft/yii2/base/Application.php(272): yii\web\Application->bootstrap()
#7 /data1/fecshop/vendor/yiisoft/yii2/base/Object.php(107): yii\base\Application->init()
#8 /data1/fecshop/vendor/yiisoft/yii2/base/Application.php(205): yii\base\Object->__construct(Array)
#9 /data1/fecshop/appserver/web/index.php(68): yii\base\Application->__construct(Array)
#10 {main}
flyyy123#36年前 0 个赞

开了调试之后,提示上面的报错

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