fecshop在windows下安装

技术分享 · wooecshop · 于 1年前 发布 · 10315 次阅读

安装过程中发现php_mongodb.dll在php5.x中启动不了,在winodows下PHP版本要是PHP7,读者也可自行尝试在php5.x下安装php_mongodb.dll github上redis只有对应x64版本的,PC系统是x86的需要自行编译redis源码

需要安装的软件:

wampserver_x86_3.0.6.exe  :集成了PHP 7.0.10  、 apache2.4.23 和 mysql
php_mongodb.dll          :  mongodb的PHP扩展
php_redis.dll              :  redis的PHP扩展
Redis-x64-3.2.100          :版本分x64、x86
mongodb-win32-x86_64-2008plus-ssl-3.4.10-signed.msi  :版本分x64、x86

1、安装WAMP:

下面地址,如果下面地址失效,自己百度wampserver 下载,wamp的安装路径为 : D:/wamp/ ,可以修改 D:\wamp\bin\apache\apache2.4.23\conf\httpd.conf

将配置部分的代码

DocumentRoot "${INSTALL_DIR}/www/"
<Directory "${INSTALL_DIR}/www/">

修改为:

DocumentRoot "${INSTALL_DIR}/www/fecshop"
<Directory "${INSTALL_DIR}/www/fecshop/">

2、配置本地的host指向,参考官网链接:http://www.fecshop.com/doc/fecshop-guide/develop/cn-1.0/guide-fecshop-about-config.html

打开文件C:\Windows\System32\drivers\etc\hosts,在文件的最后增加,

127.0.0.1       rock.fecshoptest.com     # rockmongo的域名指向,rockmongo是mongodb的可视化界面,类似于mysql的phpmyadmin
127.0.0.1       my.fecshoptest.com       # mysql的phpmyadmin的域名指向
127.0.0.1       appadmin.fecshoptest.com # 后台域名指向
127.0.0.1       appfront.fecshoptest.com # 前台pc端域名指向
127.0.0.1       appfront.fecshoptest.es  # 前台pc端 es 语言的域名指向
127.0.0.1       apphtml5.fecshoptest.com # 前台html端的域名指向
127.0.0.1       appapi.fecshoptest.com   # api端的域名指向
127.0.0.1       appserver.fecshoptest.com # server端的域名指向
127.0.0.1       img.fecshoptest.com        #appimage/common   图片的域名指向
127.0.0.1       img2.fecshoptest.com    #appimage/appadmin 图片的域名指向
127.0.0.1       img3.fecshoptest.com    #appimage/appfront 图片的域名指向
127.0.0.1       img4.fecshoptest.com    #appimage/apphtml5 图片的域名指向
127.0.0.1       img5.fecshoptest.com    #appimage/appserver图片的域名指向

3.修改apache的配置 打开文件:wamp\bin\apache\apache2.4.23\conf\httpd.conf文件:

# Virtual hosts
#Include conf/extra/httpd-vhosts.conf

修改为:

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

参考:http://www.fecshop.com/doc/fecshop-guide/develop/cn-1.0/guide-fecshop-about-config.html

打开文件wamp\bin\apache\apache2.4.23\conf\ extra\httpd-vhosts.conf文件, 上面的官方链接介绍的nginx的配置,下面是apache2根目录的文件路径配置:

# appfront.fecshoptest.com -> xxx/appfront/web 
# appfront.fecshoptest.es  -> xxx/appfront/web 
<VirtualHost *:80>
    ServerName appfront.fecshoptest.com
    ServerAlias appfront.fecshoptest.es
    DocumentRoot D:/wamp/www/fecshop/appfront/web
    <Directory  "D:/wamp/www/fecshop/appfront/web/">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require local
    </Directory>
</VirtualHost>

# appadmin.fecshoptest.com -> xxx/appadmin/web
<VirtualHost *:80>
    ServerName appadmin.fecshoptest.com
    ServerAlias appadmin.fecshoptest.com
    DocumentRoot D:/wamp/www/fecshop/appadmin/web
    <Directory  "D:/wamp/www/fecshop/appadmin/web/">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require local
    </Directory>
</VirtualHost>

# apphtml5.fecshoptest.com -> xxx/apphtml5/web
<VirtualHost *:80>
    ServerName apphtml5.fecshoptest.com
    ServerAlias apphtml5.fecshoptest.com
    DocumentRoot D:/wamp/www/fecshop/apphtml5/web
    <Directory  "D:/wamp/www/fecshop/apphtml5/web/">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require local
    </Directory>
</VirtualHost>

# appapi.fecshoptest.com -> xxx/appapi/web
<VirtualHost *:80>
    ServerName appapi.fecshoptest.com
    ServerAlias appapi.fecshoptest.com
    DocumentRoot D:/wamp/www/fecshop/appapi/web
    <Directory  "D:/wamp/www/fecshop/appapi/web/">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require local
    </Directory>
</VirtualHost>


# appserver.fecshoptest.com -> xxx/appserver/web
<VirtualHost *:80>
    ServerName appserver.fecshoptest.com
    ServerAlias appserver.fecshoptest.com
    DocumentRoot D:/wamp/www/fecshop/appserver/web
    <Directory  "D:/wamp/www/fecshop/appserver/web/">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require local
    </Directory>
</VirtualHost>

# img.fecshoptest.com -> xxx/appimage/common
<VirtualHost *:80>
    ServerName img.fecshoptest.com
    ServerAlias img.fecshoptest.com
    DocumentRoot D:/wamp/www/fecshop/appimage/common
    <Directory  "D:/wamp/www/fecshop/appimage/common/">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require local
    </Directory>
</VirtualHost>


# img2.fecshoptest.com -> xxx/appimage/appadmin
<VirtualHost *:80>
    ServerName img2.fecshoptest.com
    ServerAlias img2.fecshoptest.com
    DocumentRoot D:/wamp/www/fecshop/appimage/appadmin
    <Directory  "D:/wamp/www/fecshop/appimage/appadmin/">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require local
    </Directory>
</VirtualHost>


# img3.fecshoptest.com -> xxx/appimage/appfront
<VirtualHost *:80>
    ServerName img3.fecshoptest.com
    ServerAlias img3.fecshoptest.com
    DocumentRoot D:/wamp/www/fecshop/appimage/appfront
    <Directory  "D:/wamp/www/fecshop/appimage/appfront/">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require local
    </Directory>
</VirtualHost>

# img4.fecshoptest.com -> xxx/appimage/apphtml5
<VirtualHost *:80>
    ServerName img4.fecshoptest.com
    ServerAlias img4.fecshoptest.com
    DocumentRoot D:/wamp/www/fecshop/appimage/apphtml5
    <Directory  "D:/wamp/www/fecshop/appimage/apphtml5/">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require local
    </Directory>
</VirtualHost>


# img5.fecshoptest.com -> xxx/appimage/appserver
<VirtualHost *:80>
    ServerName img5.fecshoptest.com
    ServerAlias img5.fecshoptest.com
    DocumentRoot D:/wamp/www/fecshop/appimage/appserver
    <Directory  "D:/wamp/www/fecshop/appimage/appserver/">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require local
    </Directory>
</VirtualHost>

4、安装php_mongodb.dll

下载php_mongodb.dll,下载地址:https://pecl.php.net/package/mongodb

下载最新的,目前(2017年11月29) 最新的链接是: https://pecl.php.net/package/mongodb/1.3.2/windows

查看phpinfo输出:

Compiler	MSVC14 (Visual C++ 2015)
Architecture	x86
Thread Safety	enabled
Apache Version	Apache/2.4.23 (Win32) PHP/7.0.10

在页面 https://pecl.php.net/package/mongodb/1.3.2/windows 的DLL List找到对应的版本: 7.0 Thread Safe (TS) x86 下载的文件为: php_mongodb-1.3.2-7.0-ts-vc14-x86.zip

把里面的文件php_mongodb.dll放到D:\wamp\bin\php\php7.0.10\ext目录下

D:\wamp\bin\php\php7.0.10\php.ini
extension=php_mongodb.dll
D:\wamp\bin\apache\apache2.4.23\bin\php.ini

5、安装redis的php扩展

https://pecl.php.net/package/redis
https://pecl.php.net/package/redis/3.1.4/windows
http://windows.php.net/downloads/pecl/releases/redis/3.1.4/php_redis-3.1.4-7.0-ts-vc14-x86.zip

redis扩展文件名 : php_redis.dll , 同样是需要修改两处php.ini的配置

extension=php_redis.dll

安装redis: redis下载:https://github.com/MicrosoftArchive/redis/releases ,是编译好的windows版本的redis ,只有x64版本可供下载,如果电脑是x86的系统需要自己下载源码编译 下载后解压:双击redis-server.exe就可直接启动redis

6、安装fecshop 百度云中下载最新fecshop: https://pan.baidu.com/s/1hs1iC2C#list/path=/ 参考: http://www.fecshop.com/doc/fecshop-guide/develop/cn-1.0/guide-fecshop-about-hand-install.html

cd /d  D:\wamp\www\fecshop
php init
  [0] Development
输入0 回车

Initialize the application under 'Development' environment? [yes|no]
输入y 回车

7、修改store key 修改文件 D:\wamp\www\fecshop\appfront\config\fecshop_local_services\Store.php 把域名fecshop.appfront.fancyecommerce.com 替换成 appfront.fecshoptest.com

8、安装mongodb: 下载地址:https://www.mongodb.com/download-center

安装完mongodb,选择安装到D盘D:\Program Files目录下,我的mongoDB安装在D:\Program Files文件夹中。 在MongoDB的安装目录下,找到bin目录。

1)在目录下面新建文件夹 data,用于MongoDB数据库存放。

2)新建文件: mongodb.config,打开文件,在文件中写入: dbpath=D:\Program Files\MongoDB\Server\3.4\bin\data

找开cmd控制台,执行下面命令:

cd /d D:\Program Files\MongoDB\Server\3.4\bin
mongod --config mongodb.config

9、安装完成 重启apache2,浏览器输入:http://appfront.fecshoptest.com/ 就可以出现fecshop主页

共收到 22 条回复
Fecmall#11年前 0 个赞

1.感谢您的分享,我已经将您的文章的格式改成markdown格式了,markdown语法非常简单,http://www.appinn.com/markdown/ ,掌握几个标签就够了,您可以编辑这个文章,然后看一下我加的标签,对比一下就知道了,非常简单

2.如果可以在详细一点就更好了

3.您的帖子我加到文档中windows安装作为参考了哈,如果有时间,您在细化一下更好,因为有不少初学者。

4.再次感谢您的分享。

wooecshop#21年前 1 个赞

@Terry #1楼 不过我也初学者,开发环境搭好了学习才刚刚开始。

3楼 已删除.
learence#41年前 0 个赞

执行第六步有以下提示 E:\wamp\www\fecshop>php init 'php'不是内部或外部命令

这个是什么原因啊,谢谢

Fecmall#51年前 0 个赞

@learence [#4楼](#comment4) 报错信息就是原因,自己搜索解决

文档是执行 ./init , 在window下面具体我也没有试过,自己解决吧, 这个和安装 Yii2 advance 类似: https://github.com/yiisoft/yii2-app-advanced/blob/master/docs/guide/start-installation.md

wooecshop#61年前 0 个赞

@learence #4楼 执行:php init 或者 init 都可以,执行init,实际上执行执行是init.bat,winidows下面不需要加"./"。

PHPJAVAGOC#71年前 0 个赞

@wooecshop [#6楼](#comment6) hello 根据你的文档,我在windows下安装出了个问题。。。,在centos下有一个`composer require --prefer-dist yiisoft/yii2-redis`yii2 redis扩展的安装,以及配置,是在windows环境下没有这一步骤吗?

PHPJAVAGOC#91年前 0 个赞

@wooecshop #8楼 :laughing: :laughing:成功解决了 是没有启用php_mbstring.dll

censhine#101年前 0 个赞

@learence #4楼 将您的php安装目录添加到PATH环境变量即可解决问题>> >右键计算机,点击属性,找到高级系统设置,然后点环境变量,编辑PATH,在其后加入php的安装路径即可(比如;D:\wamp\php5;

Fecmall#111年前 0 个赞

@censhine 分享的另外一个windows安装的步骤文档,http://www.fecshop.com/topic/527

kreion#129个月前 0 个赞

按照你这个帖子来的,用的wamp,主页也能访问,可是跳转其他页面都是500错误。也查看了论坛其他帖子了,但是是wamp环境的很少,还想请使用过wamp完全部署成功的指点一二,在此拜谢。

Fecmall#149个月前 0 个赞

apache 500报错:Request exceeded the limit of 10

加了 RewriteBase / 成功解决问题。

详细参看:http://www.fecshop.com/topic/1369

kreion#159个月前 0 个赞

好的,谢谢。

Alien#161个月前 0 个赞

Win10 wamp 环境,按您上面文档操作,后台页【http://appadmin.fecshoptest.com/】 出现如下报错:

PDOException: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) in D:\web\fecshop\vendor\yiisoft\yii2\db\Connection.php:687
Stack trace:
#0 D:\web\fecshop\vendor\yiisoft\yii2\db\Connection.php(687): PDO->__construct('mysql:host=127....', 'root', 'xxxxxx', NULL)
#1 D:\web\fecshop\vendor\yiisoft\yii2\db\Connection.php(613): yii\db\Connection->createPdoInstance()
#2 D:\web\fecshop\vendor\yiisoft\yii2\db\Connection.php(996): yii\db\Connection->open()
#3 D:\web\fecshop\vendor\yiisoft\yii2\db\Connection.php(983): yii\db\Connection->getMasterPdo()
#4 D:\web\fecshop\vendor\yiisoft\yii2\db\Command.php(253): yii\db\Connection->getSlavePdo()
#5 D:\web\fecshop\vendor\yiisoft\yii2\db\Command.php(1153): yii\db\Command->prepare(true)
#6 D:\web\fecshop\vendor\yiisoft\yii2\db\Command.php(399): yii\db\Command->queryInternal('fetchAll', NULL)
#7 D:\web\fecshop\vendor\yiisoft\yii2\db\mysql\Schema.php(319): yii\db\Command->queryAll()
#8 D:\web\fecshop\vendor\yiisoft\yii2\db\mysql\Schema.php(125): yii\db\mysql\Schema->findColumns(Object(yii\db\TableSchema))
#9 D:\web\fecshop\vendor\yiisoft\yii2\db\Schema.php(744): yii\db\mysql\Schema->loadTableSchema('admin_user')
#10 D:\web\fecshop\vendor\yiisoft\yii2\db\Schema.php(194): yii\db\Schema->getTableMetadata('{{%admin_user}}', 'schema', false)
#11 D:\web\fecshop\vendor\yiisoft\yii2\db\ActiveRecord.php(435): yii\db\Schema->getTableSchema('{{%admin_user}}')
#12 D:\web\fecshop\vendor\yiisoft\yii2\db\ActiveRecord.php(262): yii\db\ActiveRecord::getTableSchema()
#13 D:\web\fecshop\vendor\yiisoft\yii2\db\ActiveRecord.php(234): yii\db\ActiveRecord::filterValidColumnNames(Object(yii\db\Connection), Array)
#14 D:\web\fecshop\vendor\yiisoft\yii2\db\ActiveRecord.php(191): yii\db\ActiveRecord::filterCondition(Array, Array)
#15 D:\web\fecshop\vendor\yiisoft\yii2\db\BaseActiveRecord.php(112): yii\db\ActiveRecord::findByCondition(Array)
#16 D:\web\fecshop\vendor\fancyecommerce\fecshop\models\mysqldb\AdminUser.php(85): yii\db\BaseActiveRecord::findOne(Array)
#17 D:\web\fecshop\vendor\yiisoft\yii2\web\User.php(595): fecshop\models\mysqldb\AdminUser::findIdentity(2)
#18 D:\web\fecshop\vendor\yiisoft\yii2\web\User.php(314): yii\web\User->getIdentityAndDurationFromCookie()
#19 D:\web\fecshop\vendor\yiisoft\yii2\web\User.php(707): yii\web\User->loginByCookie()
#20 D:\web\fecshop\vendor\yiisoft\yii2\web\User.php(192): yii\web\User->renewAuthStatus()
#21 D:\web\fecshop\vendor\yiisoft\yii2\web\User.php(360): yii\web\User->getIdentity()
#22 D:\web\fecshop\vendor\yiisoft\yii2\base\Component.php(139): yii\web\User->getIsGuest()
#23 D:\web\fecshop\vendor\yiisoft\yii2-debug\src\panels\UserPanel.php(79): yii\base\Component->__get('isGuest')
#24 D:\web\fecshop\vendor\yiisoft\yii2\base\BaseObject.php(109): yii\debug\panels\UserPanel->init()
#25 [internal function]: yii\base\BaseObject->__construct(Array)
#26 D:\web\fecshop\vendor\yiisoft\yii2\di\Container.php(384): ReflectionClass->newInstanceArgs(Array)
#27 D:\web\fecshop\vendor\yiisoft\yii2\di\Container.php(156): yii\di\Container->build('yii\\debug\\panel...', Array, Array)
#28 D:\web\fecshop\vendor\yiisoft\yii2\BaseYii.php(349): yii\di\Container->get('yii\\debug\\panel...', Array, Array)
#29 D:\web\fecshop\vendor\yiisoft\yii2-debug\src\Module.php(182): yii\BaseYii::createObject(Array)
#30 D:\web\fecshop\vendor\yiisoft\yii2-debug\src\Module.php(154): yii\debug\Module->initPanels()
#31 D:\web\fecshop\vendor\yiisoft\yii2\base\BaseObject.php(109): yii\debug\Module->init()
#32 D:\web\fecshop\vendor\yiisoft\yii2\base\Module.php(158): yii\base\BaseObject->__construct(Array)
#33 [internal function]: yii\base\Module->__construct('debug', Object(yii\web\Application), Array)
#34 D:\web\fecshop\vendor\yiisoft\yii2\di\Container.php(376): ReflectionClass->newInstanceArgs(Array)
#35 D:\web\fecshop\vendor\yiisoft\yii2\di\Container.php(156): yii\di\Container->build('yii\\debug\\Modul...', Array, Array)
#36 D:\web\fecshop\vendor\yiisoft\yii2\BaseYii.php(345): yii\di\Container->get('yii\\debug\\Modul...', Array)
#37 D:\web\fecshop\vendor\yiisoft\yii2\base\Module.php(427): yii\BaseYii::createObject('yii\\debug\\Modul...', Array)
#38 D:\web\fecshop\vendor\yiisoft\yii2\base\Application.php(315): yii\base\Module->getModule('debug')
#39 D:\web\fecshop\vendor\yiisoft\yii2\web\Application.php(69): yii\base\Application->bootstrap()
#40 D:\web\fecshop\vendor\yiisoft\yii2\base\Application.php(273): yii\web\Application->bootstrap()
#41 D:\web\fecshop\vendor\yiisoft\yii2\base\BaseObject.php(109): yii\base\Application->init()
#42 D:\web\fecshop\vendor\yiisoft\yii2\base\Application.php(206): yii\base\BaseObject->__construct(Array)
#43 D:\web\fecshop\appadmin\web\index.php(76): yii\base\Application->__construct(Array)
#44 {main}

Next yii\db\Exception: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) in D:\web\fecshop\vendor\yiisoft\yii2\db\Connection.php:624
Stack trace:
#0 D:\web\fecshop\vendor\yiisoft\yii2\db\Connection.php(996): yii\db\Connection->open()
#1 D:\web\fecshop\vendor\yiisoft\yii2\db\Connection.php(983): yii\db\Connection->getMasterPdo()
#2 D:\web\fecshop\vendor\yiisoft\yii2\db\Command.php(253): yii\db\Connection->getSlavePdo()
#3 D:\web\fecshop\vendor\yiisoft\yii2\db\Command.php(1153): yii\db\Command->prepare(true)
#4 D:\web\fecshop\vendor\yiisoft\yii2\db\Command.php(399): yii\db\Command->queryInternal('fetchAll', NULL)
#5 D:\web\fecshop\vendor\yiisoft\yii2\db\mysql\Schema.php(319): yii\db\Command->queryAll()
#6 D:\web\fecshop\vendor\yiisoft\yii2\db\mysql\Schema.php(125): yii\db\mysql\Schema->findColumns(Object(yii\db\TableSchema))
#7 D:\web\fecshop\vendor\yiisoft\yii2\db\Schema.php(744): yii\db\mysql\Schema->loadTableSchema('admin_user')
#8 D:\web\fecshop\vendor\yiisoft\yii2\db\Schema.php(194): yii\db\Schema->getTableMetadata('{{%admin_user}}', 'schema', false)
#9 D:\web\fecshop\vendor\yiisoft\yii2\db\ActiveRecord.php(435): yii\db\Schema->getTableSchema('{{%admin_user}}')
#10 D:\web\fecshop\vendor\yiisoft\yii2\db\ActiveRecord.php(262): yii\db\ActiveRecord::getTableSchema()
#11 D:\web\fecshop\vendor\yiisoft\yii2\db\ActiveRecord.php(234): yii\db\ActiveRecord::filterValidColumnNames(Object(yii\db\Connection), Array)
#12 D:\web\fecshop\vendor\yiisoft\yii2\db\ActiveRecord.php(191): yii\db\ActiveRecord::filterCondition(Array, Array)
#13 D:\web\fecshop\vendor\yiisoft\yii2\db\BaseActiveRecord.php(112): yii\db\ActiveRecord::findByCondition(Array)
#14 D:\web\fecshop\vendor\fancyecommerce\fecshop\models\mysqldb\AdminUser.php(85): yii\db\BaseActiveRecord::findOne(Array)
#15 D:\web\fecshop\vendor\yiisoft\yii2\web\User.php(595): fecshop\models\mysqldb\AdminUser::findIdentity(2)
#16 D:\web\fecshop\vendor\yiisoft\yii2\web\User.php(314): yii\web\User->getIdentityAndDurationFromCookie()
#17 D:\web\fecshop\vendor\yiisoft\yii2\web\User.php(707): yii\web\User->loginByCookie()
#18 D:\web\fecshop\vendor\yiisoft\yii2\web\User.php(192): yii\web\User->renewAuthStatus()
#19 D:\web\fecshop\vendor\yiisoft\yii2\web\User.php(360): yii\web\User->getIdentity()
#20 D:\web\fecshop\vendor\yiisoft\yii2\base\Component.php(139): yii\web\User->getIsGuest()
#21 D:\web\fecshop\vendor\yiisoft\yii2-debug\src\panels\UserPanel.php(79): yii\base\Component->__get('isGuest')
#22 D:\web\fecshop\vendor\yiisoft\yii2\base\BaseObject.php(109): yii\debug\panels\UserPanel->init()
#23 [internal function]: yii\base\BaseObject->__construct(Array)
#24 D:\web\fecshop\vendor\yiisoft\yii2\di\Container.php(384): ReflectionClass->newInstanceArgs(Array)
#25 D:\web\fecshop\vendor\yiisoft\yii2\di\Container.php(156): yii\di\Container->build('yii\\debug\\panel...', Array, Array)
#26 D:\web\fecshop\vendor\yiisoft\yii2\BaseYii.php(349): yii\di\Container->get('yii\\debug\\panel...', Array, Array)
#27 D:\web\fecshop\vendor\yiisoft\yii2-debug\src\Module.php(182): yii\BaseYii::createObject(Array)
#28 D:\web\fecshop\vendor\yiisoft\yii2-debug\src\Module.php(154): yii\debug\Module->initPanels()
#29 D:\web\fecshop\vendor\yiisoft\yii2\base\BaseObject.php(109): yii\debug\Module->init()
#30 D:\web\fecshop\vendor\yiisoft\yii2\base\Module.php(158): yii\base\BaseObject->__construct(Array)
#31 [internal function]: yii\base\Module->__construct('debug', Object(yii\web\Application), Array)
#32 D:\web\fecshop\vendor\yiisoft\yii2\di\Container.php(376): ReflectionClass->newInstanceArgs(Array)
#33 D:\web\fecshop\vendor\yiisoft\yii2\di\Container.php(156): yii\di\Container->build('yii\\debug\\Modul...', Array, Array)
#34 D:\web\fecshop\vendor\yiisoft\yii2\BaseYii.php(345): yii\di\Container->get('yii\\debug\\Modul...', Array)
#35 D:\web\fecshop\vendor\yiisoft\yii2\base\Module.php(427): yii\BaseYii::createObject('yii\\debug\\Modul...', Array)
#36 D:\web\fecshop\vendor\yiisoft\yii2\base\Application.php(315): yii\base\Module->getModule('debug')
#37 D:\web\fecshop\vendor\yiisoft\yii2\web\Application.php(69): yii\base\Application->bootstrap()
#38 D:\web\fecshop\vendor\yiisoft\yii2\base\Application.php(273): yii\web\Application->bootstrap()
#39 D:\web\fecshop\vendor\yiisoft\yii2\base\BaseObject.php(109): yii\base\Application->init()
#40 D:\web\fecshop\vendor\yiisoft\yii2\base\Application.php(206): yii\base\BaseObject->__construct(Array)
#41 D:\web\fecshop\appadmin\web\index.php(76): yii\base\Application->__construct(Array)
#42 {main}
Additional Information:
17楼 已删除.
Alien#181个月前 0 个赞

后台页面报错

另外,前台页面虽然可以打开,但没有产品信息,如图前台页无产品信息

Fecmall#191个月前 0 个赞

1.可能是mysql密码没有设置正确

2.404问题,论坛搜索 nginx去掉index.php

Alien#201个月前 0 个赞

感谢,原来是mysql密码没配置好,现在后台各个链接均可以正常打开了。(已在***\fecshop\appfront\web目录下添加.htaccess文件,不过前台页面依然是404,且后台无产品信息,后来参考Fecshop 初始配置重新配置了下测试数据,就正常了)。

不过目前还有个问题,后台修改或添加产品信息时会有如下报错,不知怎么解决:

Http status: 500 Internal Server Error
ajaxOptions: error
thrownError: Internal Server Error
Exception 'XSErrorException' with message 'fsockopen(): php_network_getaddresses: getaddrinfo failed: ��֪������������ ' 

in D:\web\fecshop\vendor\hightman\xunsearch\lib\XS.class.php:711

Stack trace:
#0 [internal function]: xsErrorHandler(2, 'fsockopen(): ph...', 'D:\\web\\fecshop\\...', 476, Array)
#1 D:\web\fecshop\vendor\hightman\xunsearch\lib\XSServer.class.php(476): fsockopen('xunsearch', 8383, 0, 'php_network_get...', 5)
#2 D:\web\fecshop\vendor\hightman\xunsearch\lib\XSServer.class.php(172): XSServer->connect()
#3 D:\web\fecshop\vendor\hightman\xunsearch\lib\XSServer.class.php(147): XSServer->open('xunsearch:8383')
#4 D:\web\fecshop\vendor\hightman\xunsearch\lib\XS.class.php(415): XSServer->__construct('xunsearch:8383', Object(XS))
#5 D:\web\fecshop\vendor\hightman\xunsearch\lib\XS.class.php(186): XS->getIndex()
#6 D:\web\fecshop\vendor\hightman\xunsearch\wrapper\yii2-ext\Database.php(83): XSComponent->__get('index')
#7 D:\web\fecshop\vendor\hightman\xunsearch\wrapper\yii2-ext\ActiveRecord.php(297): hightman\xunsearch\Database->getIndex()
#8 D:\web\fecshop\vendor\yiisoft\yii2\db\BaseActiveRecord.php(678): hightman\xunsearch\ActiveRecord->insert(true, NULL)
#9 D:\web\fecshop\vendor\fancyecommerce\fecshop\services\helper\AR.php(108): yii\db\BaseActiveRecord->save()
#10 D:\web\fecshop\vendor\fancyecommerce\fecshop\services\search\XunSearch.php(85): fecshop\services\helper\AR->save(Object(fecshop\models\xunsearch\Search), Array, true)
#11 [internal function]: fecshop\services\search\XunSearch->actionSyncProductInfo(Array, 20)
#12 D:\web\fecshop\vendor\fancyecommerce\fecshop\services\Service.php(54): call_user_func_array(Array, Array)
#13 D:\web\fecshop\vendor\fancyecommerce\fecshop\services\Search.php(71): fecshop\services\Service->__call('syncProductInfo', Array)
#14 [internal function]: fecshop\services\Search->actionSyncProductInfo(Array)
#15 D:\web\fecshop\vendor\fancyecommerce\fecshop\services\Service.php(54): call_user_func_array(Array, Array)
#16 D:\web\fecshop\vendor\fancyecommerce\fecshop\services\product\ProductMongodb.php(344): fecshop\services\Service->__call('syncProductInfo', Array)
#17 D:\web\fecshop\vendor\fancyecommerce\fecshop\services\Product.php(381): fecshop\services\product\ProductMongodb->save(Array, '/architectural-...')
#18 [internal function]: fecshop\services\Product->actionSave(Array, 'catalog/product...')
#19 D:\web\fecshop\vendor\fancyecommerce\fecshop\services\Service.php(54): call_user_func_array(Array, Array)
#20 D:\web\fecshop\vendor\fancyecommerce\fecshop\app\appadmin\modules\Catalog\block\productinfo\Manageredit.php(412): fecshop\services\Service->__call('save', Array)
#21 D:\web\fecshop\vendor\fancyecommerce\fecshop\app\appadmin\modules\Catalog\controllers\ProductinfoController.php(91): fecshop\app\appadmin\modules\Catalog\block\productinfo\Manageredit->save()
#22 [internal function]: fecshop\app\appadmin\modules\Catalog\controllers\ProductinfoController->actionManagereditsave()
#23 D:\web\fecshop\vendor\yiisoft\yii2\base\InlineAction.php(57): call_user_func_array(Array, Array)
#24 D:\web\fecshop\vendor\yiisoft\yii2\base\Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#25 D:\web\fecshop\vendor\yiisoft\yii2\base\Module.php(528): yii\base\Controller->runAction('managereditsave', Array)
#26 D:\web\fecshop\vendor\yiisoft\yii2\web\Application.php(103): yii\base\Module->runAction('catalog/product...', Array)
#27 D:\web\fecshop\vendor\yiisoft\yii2\base\Application.php(386): yii\web\Application->handleRequest(Object(yii\web\Request))
#28 D:\web\fecshop\appadmin\web\index.php(77): yii\base\Application->run()
#29 {main}
Fecmall#211个月前 0 个赞

@Alien #20楼

出现问题可否先论坛搜一下帖子?

Fecmall#221个月前 0 个赞

xunsearch没有开启,

1.开启xunsearch,中文搜索有效。

2.如果不使用中文搜索,配置中关掉xunsearch

http://www.fecshop.com/doc/fecshop-guide/instructions/cn-1.0/guide-fecshop_search.html#

另外一个问题一个帖子,请开新帖

nimingjun#2319天前 0 个赞

我的wamp的php没有mcrypt,一查说php7废弃掉了,哪里能下到?

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