## 安裝使用步驟
- 上傳你的代碼到服務器。(服務器的配置可以參考:[博客](http://blog.csdn.net/ityang_/article/))
工具:[WinSCP](https://www.baidu.com/link?url=2YLg_ZjyTsLLQjT5L22_Z8XG-G7LwdpMVTPIDqDs7cu1fKMejOLK46xg5xvec9Qqa-aKS8P-1YP8uu1_IMs9IcVmuTU0xJdhuUMTBVLa0V3&wd=&eqid=c9944b1600001a930000000358b4e993)
- 還原數據庫,將數據庫sql文件還原到MySQL服務器中。
- 修改網站配置文件。
- 在data/conf/db.php 中修改成自己服務器的賬號信息。
~~~
例如:
<?php
/**
* 配置文件
*/
return array(
'DB_TYPE' => 'mysql',
'DB_HOST' => '127.0.0.1',
'DB_NAME' => 'web',
'DB_USER' => 'root',
'DB_PWD' => 'root',
'DB_PORT' => '3306',
'DB_PREFIX' => 'cmf_',
//密鑰
"AUTHCODE" => 'dij0u5RO9OIm3h2Fxd',
//cookies
"COOKIE_PREFIX" => 'p6xSdu_',
);
~~~
- 在data/conf/config.php 中修改用戶中心信息。(對接用戶中心使用)
~~~
例如:假如用戶中心網址為:account.web.cn
<?php
'APPID' => '000000',//默認鑰匙id
'APPKEY' => '000000',//默認鑰匙密鑰
'OAUTH_HOST' => 'http://account.web.cn/ucenter/oauth', //用戶中心授權服務器地址
'OAUTH_RES' => 'http://account.web.cn/ucenter/resource/userinfo', //用戶中心資源服務器地址
'REDIRECT_URL' => 'http://account.web.cn/ucenter/config/index', //用戶中心回調地址
'OAUTH_LOGIN' => 'http://account.web.cn/ucenter/member/login', //用戶中心登錄地址
'OAUTH_REGISTER' => 'http://account.web.cn/ucenter/member/register', //用戶中心注冊地址
'OAUTH_CENTER' => 'http://account.web.cn/ucenter/config/index', //用戶中心用戶信息地址
~~~
- 修改web/data/runtime所有文件的權限
` chmod -R 777 web/data/runtime`
- 修改web/en/data/runtime所有文件的權限
` chmod -R 777 web/en/data/runtime`
- 賬戶信息
> 賬戶管理功能-----普通用戶通過用戶中心授權登錄(需要在web/data/conf/config.php中配置用戶中心地址)
> 網站后臺地址:http://xx.com/admin/index/index 用戶名: admin 密碼:admin