DiscuzX 论坛安装升级

DiscuzX安装:

系统环境:linux

系统架构:最前端两台Nginx使用Keepalived来实现高可用和负载均衡然后使用这两台Nginx来发布后端的多个应用,后端包括Tomcat和PHP环境

软件环境:Nginx-->(Nginx+PHP)-->Mysql

第一个Nginx作为前端,Nginx+PHP的环境用来安装DiscuzX使用Nginx替代Apache最后端的数据仓库使用的Mysql

前端Nginx配置:

vim/app/nginx/conf.d/bbs.test.com

server{
listen80;
server_namebbs.test.com;

location~*{
proxy_passhttp://172.16.80.21:80;
proxy_set_headerHostbbs.test.com;
proxy_set_headerX-Real-IP$remote_addr;
proxy_set_headerX-Forwarded-For$proxy_add_x_forwarded_for;
}

log_formatbbslogs'$remote_addr-$remote_user[$time_local]"$request"'
'$status$body_bytes_sent"$http_referer"'
'"$http_user_agent"$http_x_forwarded_for';
access_loglogs/bbslog.logbbslogs;
}

Nginx+PHP配置

vim/app/nginx/conf.d/bbs.test.com

server{
listen80;
server_namebbs.test.com;
indexindex.htmlindex.htmindex.php;
root/app/bbs.test.com/;
rewrite/$/forum.phplast;

error_page404/404.html;
error_page500502503504/50x.html;
location=/50x.html{
roothtml;
}

location~\.php${
fastcgi_pass127.0.0.1:9000;
fastcgi_indexindex.php;
fastcgi_paramSCRIPT_FILENAME$document_root$fastcgi_script_name;
includefastcgi_params;
}
}

PHP的安装请参考我的另一篇博客:http://blog.csdn.net/moguibeijing/article/details/10974033

其中论坛系统安装和PHP环境安装在其中一台主机

1.DiscuzX程序1.0、1.5、2.0、2.5、3.0Beta
1)备份数据库
2)建立文件夹old,旧程序除了data,config,uc_client,uc_server目录以外的程序移动进入old目录中
3)上传3.0RC程序(压缩包中upload目录中的文件)
4)上传安装包utility目录中的update.php到论坛install目录,删除install目录中的index.php
执行http://你的域名/论坛路径/install/update.php
参照提示进行升级即可。升级时间随着数据的大小和服务器性能而变,依据测试,10G左右的论坛,从2.5升级值3.0大约需1.5-2.5个小时。如果你的版本更老一些,升级的时间消耗的会更多些。
升级完毕,进入后台,更新缓存,并测试功能。最后,你可以将old目录中所需要的东西移动回来
后台路径:http://192.168.1.1/admin.php?

本人在从2.0平台升级3.0平台是遇到提示:请先升级UCenter到1.6.0以上版本。
如果使用为Discuz!X自带UCenter,请先下载UCenter1.6.0,在utilities目录下找到对应的升级程序,复制或上传到Discuz!X的uc_server目录下,运行该程序进行升级
这个提示是在合成DZ+UC版遇到的,
问题解决帖:
应用帖子:http://www.discuz.net/forum.php?mod=viewthread&tid=2744425

方法:
第一、http://你的域名/install/update.php?step=prepare直接输入
第二、在updata.php文件中查找代码if(version_compare($version,'1.5.2')<=0){将代码修改为:if(version_compare($version,'1.5.2')>=0){就可以跳过检查了!!

此方法可用!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章