wampserver2.6下UCenter1.6.0与UCenter Home2.0整合安装

上一篇文章,我们已经安装了,ucenter1.6.0,所以此文介绍独立安装ucenter1.6.0与ucenter home2.0的整合安装。

1,)从官网下载UCenter_Home_2.0_SC_UTF8.zip,解压后把upload拷贝到apache的发布目录www下,修改upload文件名称为ucenterhome;

2,)修改虚拟目录配置:D:\wamp\bin\apache\Apache2.2.21\conf\extra\httpd-vhosts.conf中添加配置:

<VirtualHost *:8080>
    ServerAdmin admin@ucenterhome001.cn
    DocumentRoot "d:/wamp/www/ucenterhome"
    ServerName ucenterhome001.com
    ServerAlias *.ucenterhome001.com
    ErrorLog logs/ucenterhome001-error.log
    CustomLog "logs/ucenterhome001-access.log" common
    <Directory "d:/wamp/www/ucenterhome">
        Options Indexes FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

3,)添加host配置:在文件C:\Windows\System32\drivers\etc\host最后一行添加

127.0.0.1       www.ucenterhome001.com

4,)重启wampserver服务,在浏览器中输入:http://www.ucenterhome001.com:8080/,这是网址会自动跳转到:

http://www.ucenterhome001.com:8080/install/index.php

进入安装页面:

按照提示,将config.new.php修改为config.php,之后刷新页面显示为:

5,)点击”接受授权协议,开始安装UCenter Home“,进入”设置UCenter信息“

填写ucenter的url为:http://www.ucenter001.com:8080

填写ucenter的创始人密码:admin

之后,点击”提交UCenter配置信息“,进入界面:

6,)点击”进入下一步“,进入”设置数据库连接信息“ ,设置UCenter Home数据库信息

数据库设置完成后,点击”设置完毕,检测我的数据库配置“

之后依次自动进入界面:

7,)开通管理员空间,安装完成

填写用户名:admin

密码:admin

之后点击”开通管理员空间“,进入

8,)进入我的空间:

9,)进入管理平台:

 

 10,)进入ucenter中心,查看应用是否通信成功:

注意:

进入用户中心后,当我点击"消息"时,抛出一个异常:

Error:Table 'ucenter.uc_pms' doesn't exist
Errno:1146
SQL::SELECT count(*) FROM `ucenter`.uc_pms WHERE (related='0' AND msgfromid>'0' OR msgfromid='0') AND msgtoid='0' AND folder='inbox' AND new='1'

解决方案:

进入ucenter数据库,创建uc_pms表就可以了。

DROP TABLE IF EXISTS uc_pms;

CREATE TABLE uc_pms (

pmid int(10) unsigned NOT NULL auto_increment,

msgfrom varchar(15) NOT NULL default '',

msgfromid mediumint(8) unsigned NOT NULL default '0',

msgtoid mediumint(8) unsigned NOT NULL default '0',

folder enum('inbox','outbox') NOT NULL default 'inbox',

new tinyint(1) NOT NULL default '0',

subject varchar(75) NOT NULL default '',

dateline int(10) unsigned NOT NULL default '0',

message text NOT NULL,

delstatus tinyint(1) unsigned NOT NULL default '0',

related int(10) unsigned NOT NULL default '0',

PRIMARY KEY(pmid),

KEY msgtoid(msgtoid,folder,dateline),

KEY msgfromid(msgfromid,folder,dateline),

KEY related (related),

KEY getnum (msgtoid,folder,delstatus)

)

 

posted @ 2015-09-20 13:29  cctext  阅读(567)  评论(0编辑  收藏  举报