论坛搭建:
rpm -qa php-mysql
rpm -qa mysql-server
rpm -qa php
rpm -qa mysql
rpm -qa bind
rpm -qa httpd
查看以上的包是否安装
接下来我们来编辑apache的主配置文档,打开虚拟主机的配置项,
[root@localhost discuz]# vim /etc/httpd/conf/httpd.conf 默认路径
## DocumentRoot "/var/www/html" 把这行注视了
NameVirtualHost *:80 把这行打开
<VirtualHost *:80>
DocumentRoot /var/www/discuz
ServerName discuz.example.com
Errorlog /var/log/httpd/discuz/err_log
Customlog /var/log/httpd/discuz/custom_log combined
</virtualhost> 在最后添加 这几行
接下来:
#mkdir /var/log/httpd/discuz
#vim /etc/hosts
192.168.0.51 discuz.example.com 添加
#ping discuz.example.com 查看是否通
重启 server mysqld restart
解压discuz 软件包
#cd /var/www/discuz 把包解压这里
# unzip Discuz_7.2_FULL_SC_GBK.zip 解包
# mv upload/* ./
# ls
在浏览器上打开 ip地址 加install
然后安装
遇到问题:
#cd /var/www/discuz
[root@localhost discuz]# vim config.inc.php
修改:
$dbhost = 'localhost:/tmp/mysql.sock';
$charset = 'gbk';
$headercharset = 1;