From d74d35dc29e6e35846ffeb4b0c5c171b5b58ada5 Mon Sep 17 00:00:00 2001 From: xurongyao Date: Mon, 17 Sep 2018 09:01:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=AE=E5=8A=A9=E6=96=87=E6=A1=A3=E6=95=B4?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc.md | 117 ++++++++++++++++++++++++++++++ .htaccess => public/.htaccess | 18 ++--- favicon.ico => public/favicon.ico | Bin mysql.php => public/mysql.php | 0 nginx.conf => public/nginx.conf | 0 router.php => public/router.php | 0 web.config => public/web.config | 24 +++--- readme.txt | 23 ------ 8 files changed, 138 insertions(+), 44 deletions(-) create mode 100644 doc.md rename .htaccess => public/.htaccess (94%) rename favicon.ico => public/favicon.ico (100%) rename mysql.php => public/mysql.php (100%) rename nginx.conf => public/nginx.conf (100%) rename router.php => public/router.php (100%) rename web.config => public/web.config (97%) delete mode 100644 readme.txt diff --git a/doc.md b/doc.md new file mode 100644 index 00000000..90c5d094 --- /dev/null +++ b/doc.md @@ -0,0 +1,117 @@ +## CRMEB开源文档地址:https://gitee.com/ZhongBangKeJi/CRMEB +## 运行环境 +CRMEB可以支持Windows/Unix服务器环境,需要PHP5.5.9以上,Mysql5.1以上版本支持, 可运行于包括Apache、IIS和nginx在内的多种WEB服务器和模式,支持Mysql数据库,引擎用InnoDB; + +如果使用curl发起https请求的时候报错:“SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed” +服务器需要安装证书免费的,方法如下: +http://curl.haxx.se/ca/cacert.pem [下载](http://curl.haxx.se/ca/cacert.pem) +curl.cainfo 参数(php.ini)来指定CA根证书库的位置 + +如果使用小程序必须使用https协议[百科了解一下](https://baike.baidu.com/item/https/285356),服务器需要安装ssl证书 + + +框架本身没有什么特别模块要求,具体的应用系统运行环境要求视开发所涉及的模块。 CRMEB底层运行的内存消耗极低,而本身的文件大小也是轻量级的,因此不会出现 空间和内存占用的瓶颈。对于刚刚接触PHP或者CRMEB的新手,我们推荐使用集成开发 环境WAMPServer或者phpstudy(都是一个集成了Apache、PHP和MySQL的开发 套件,而且支持不同PHP版本、MySQL版本和Apache版本的切换)来使用CRMEB 进行本地开发和测试。 + +## 安装使用 + +## 一键安装 +上传你的代码,直接在浏览器中输入你的域名或IP(例如:www.yourdomain.com), +安装可以直接访问根目录下index.php,页可以设置对外目录为crmeb,就默认访问crmeb目录下的index.php +安装程序会自动执行安装。期间系统会提醒你输入数据库信息以完成安装,安装完成后建议删除install目录下index.php文件或将其改名。 +## 手动安装 + +1.创建数据库,倒入数据库文件 + +数据库文件目录名crmeb.sql,在根目录下. + +2.修改数据库连接文件 + +配置文件路径/application/database.php + +3.修改目录权限(linux系统)777 + +/public + +/runtime + +4.后台登录:http://域名/admin + +默认账号:admin 密码:crmeb.com + +5.前端登陆(wap端登陆):http://域名/wap + +默认账号:crmeb 密码:123456 + +6.小程序模版路径 + +/application/routine/view/crmebN + +需要配置域名 + +/application/routine/view/crmebN/app.js + +``` +globalData: { + routineStyle:'#ffffff', + uid: null, + openPages:'', + spid:0, + urlImages: '', + url: 'https://shop.crmeb.net/'//改成自己的网址 + }, +``` + +### # 伪静态 +1、Nginx +~~~ +location / { + if (!-e $request_filename) { + rewrite ^(.*)$ /index.php?s=$1 last; + break; + } + } +~~~ +2、Apache +.htaccess文件 +~~~ +RewriteEngine +on + +#不显示index.php + +RewriteCond %{REQUEST_FILENAME} +!-d +RewriteCond %{REQUEST_FILENAME} !-f +RewriteRule ^(.*)$ index.php/$1 +[QSA,PT,L] +~~~ +3、iis服务 +web.config +~~~ + + + + + + + + + + + + + +~~~ +更多参考:https://www.kancloud.cn/manual/thinkphp5/177576 + +项目支持公众号商城和小程序商城可单独配置使用,如需公众号和小程序账户同步,请申请微信开放平台进行绑定 +开放平台申请地址:https://open.weixin.qq.com/ + +开源项目不含:砍价和拼团功能 +如需砍价和拼团完功能请淘宝购买仅需49元 +官方淘宝地址:https://shop120689819.taobao.com/ + +更多帮助文档:https://gitee.com/ZhongBangKeJi/CRMEB/wikis/%E5%BC%80%E5%8F%91%E6%96%87%E6%A1%A3?sort_id=680379 +帮助文档:https://gitee.com/ZhongBangKeJi/CRMEB/wikis +技术支持QQ群:116279623 +form-builder帮助文档:https://github.com/xaboy/form-builder \ No newline at end of file diff --git a/.htaccess b/public/.htaccess similarity index 94% rename from .htaccess rename to public/.htaccess index 286a7267..883441b5 100644 --- a/.htaccess +++ b/public/.htaccess @@ -1,10 +1,10 @@ -RewriteEngine -on - -#不显示index.php - -RewriteCond %{REQUEST_FILENAME} -!-d -RewriteCond %{REQUEST_FILENAME} !-f -RewriteRule ^(.*)$ index.php/$1 +RewriteEngine +on + +#不显示index.php + +RewriteCond %{REQUEST_FILENAME} +!-d +RewriteCond %{REQUEST_FILENAME} !-f +RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] \ No newline at end of file diff --git a/favicon.ico b/public/favicon.ico similarity index 100% rename from favicon.ico rename to public/favicon.ico diff --git a/mysql.php b/public/mysql.php similarity index 100% rename from mysql.php rename to public/mysql.php diff --git a/nginx.conf b/public/nginx.conf similarity index 100% rename from nginx.conf rename to public/nginx.conf diff --git a/router.php b/public/router.php similarity index 100% rename from router.php rename to public/router.php diff --git a/web.config b/public/web.config similarity index 97% rename from web.config rename to public/web.config index 352b415d..80a7d904 100644 --- a/web.config +++ b/public/web.config @@ -1,13 +1,13 @@ - - - - - - - - - - - - + + + + + + + + + + + + \ No newline at end of file diff --git a/readme.txt b/readme.txt deleted file mode 100644 index 65dadac5..00000000 --- a/readme.txt +++ /dev/null @@ -1,23 +0,0 @@ -运行环境 -CRMEB可以支持Windows/Unix服务器环境,需要PHP5.5.9以上,Mysql5.1以上版本支持, 可运行于包括Apache、 -IIS和nginx在内的多种WEB服务器和模式,支持Mysql数据库,引擎用InnoDB; - -如果使用curl发起https请求的时候报错:“SSL certificate problem, verify that the CA cert is OK. -Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed” -服务器需要安装证书免费的,方法如下: http://curl.haxx.se/ca/cacert.pem 下载证书 -curl.cainfo 参数(php.ini)来指定CA根证书库的位置 - - -项目支持公众号商城和小程序商城可单独配置使用,如需公众号和小程序账户同步,请申请微信开放平台进行绑定 -开放平台申请地址:https://open.weixin.qq.com/ -CRMEB开源文档地址:https://gitee.com/ZhongBangKeJi/CRMEB -帮助文档:https://gitee.com/ZhongBangKeJi/CRMEB/wikis -技术支持QQ群:116279623 -form-builder帮助文档:https://github.com/xaboy/form-builder - -小程序页面路径:/application/routine/view/crmebN -小程序后台下载开发工具,打开模版小程序模版路径 - -开源项目不含:砍价和拼团功能 -如需砍价和拼团完功能请淘宝购买仅需49元 -官方淘宝地址:https://shop120689819.taobao.com/ \ No newline at end of file