您的位置:首页 > 其它

vps安装Discuz论坛

2012-11-06 19:15 183 查看
最近在smartvps.cn上购买了一台vps,在上边搭建了Discuz论坛,现把安装步骤发布给大家

1。安装yum install httpd* php* mysql* -y

2。设置服务

chkconfig httpd on

chkconfig mysqld on

service httpd restart

service mysqld restart

3。设置mysql密码
mysqladmin -u root password "密码"
4。创建Discuz所用的数据库

[root@hkg-vps-srv003 ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.1.61 Source distribution

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create database discuz;
Query OK, 1 row affected (0.00 sec)

mysql> exit
5.从http://www.comsenz.com/downloads/install/discuzx#下载安装包
6。解压ZIP包,并将upload文件下所有文件移动到/var/www/html下
unzip Discuz_X2.5_SC_UTF8.zip
mv upload/* /var/www/html/
7。从网页访问:http://IP/,选择同意







8.修改不可写文件的权限,执行

chmod 777 -R /var/www/html/config/
chmod 777 -R /var/www/html/data/
chmod 777 -R /var/www/html/uc_client/
chmod 777 -R /var/www/html/uc_server/

然后选择下一步,选择全新安装




9。输入DB的IP地址,数据库名,数据库密码,以及管理信息,选择下一步,进行安装。





10。



本文出自 “LINUX交流” 博客,请务必保留此出处http://syuanwei.blog.51cto.com/2616312/1051933
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: