当前位置: 首页 > 图文教程 > 服务器 > Linux服务器 > Linux系统搭建Discuz论坛的方法
环境
linuxAS42.6.9
1.安装mysql
使用版本mysql5.1.22-rc.tar.gz
把安装包拷贝到/usr/local目录后执行如下命令:
groupaddmysqluseradd-gmysqlmysqlcdmysqlscripts/mysql_install_db--user=mysqlchown-Rmysql:mysql.cp/usr/local/mysql/support-files/my-medium.cnf/etc/my.cnfcp/usr/local/mysql/support-files/mysql.server/etc/rc.d/init.d/mysqldchmod+x/etc/rc.d/init.d/mysqldln-s/usr/local/mysql/bin/mysql/usr/sbin/mysqlchkconfig--addmysqld
启动mysql
servicemysqldstart
进入mysql
mysql
2.安装apache
版本httpd-2.0.61.tar.gz
。/configure——prefix=/usr/local/apache——enable-module=so
make
makeinstall
cd/usr/local/apache/bin
。/apachectlstart
如果没有安装gcc编译工具,安装的时候会有提示。可以在光盘中找到!
3.安装php
版本php-4.4.7.tar.gz
。/configure——prefix=/usr/local/php——with-apxs2=/usr/local/apache/bin/apxs——with-config-file-path=/usr/local/lib——enable-track-vars——with-xml——with-mysql=/usr/local/mysql——with-mbstring——enable-mbstring=all
make
makeinstall
注释:
——with-apxs=dir作为apache的模块编译
——with-config-file-path=dirphp.ini所在目录
——enable-track-vars跟踪变量
——with-xmlxml支持
——with-mysql=dirmysql支持
//论坛系统Email
$dbreport=0;//senddberrorreport?1=yes
//是否发送数据库错误报告?0=否,1=是
根据实际情况填写以上信息
注意:数据库不用事先创建好,在安装论坛的时候会自动创建的!
e.执行安装脚本
在浏览器中输入http://您的域名/论坛目录/install.php以完成最后的安装。
安装成功后,请删除安装脚本(install.php),以避免被再次安装。如果你不删除,进入论坛后台会发现不能设置。
注意:
一般不能正常安装的情况都是缺少编译软件造成的!以上操作已经做过测试。
评论 (0) All