RedHat5.4搭建Discuz论坛系统

Redhat 5.4搭建Discuz论坛系统一:环境: redhat5.4 32位系统二:操作系统安装请参考(yourmail系统安装文件)三:系统底层架构: LAMP平台LAMP+phpMyAadmin+discuz四:实施步骤______________________________________________________________________________1:1检查Discuz系统所需的依赖包,软件包在系统盘去找即可。libtermcap-2.0.8-46.1.i386.rpmlibtermcap-devel-2.0.8-46.1.i386.rpm libxml2-2.6.26-2.1.2.8.i386.rpm libxml2-devel-2.6.26-2.1.2.8.i386.rpm libxml2-python-2.6.26-2.1.2.8.i386.rpm openssl-0.9.8e-12.el5.i386.rpm openssl-0.9.8e-12.el5.i686.rpm openssl-devel-0.9.8e-12.el5.i386.rpm openssl-perl-0.9.8e-12.el5.i386.rpm glib-1.2.10-20.el5.i386.rpm gd-progs-2.0.33-9.4.el5_1.1.i386.rpm gdm-docs-2.16.0-56.el5.i386.rpmgdk-pixbuf-0.22.0-25.el5.i386.rpmgdk-pixbuf-devel-0.22.0-25.el5.i386.rpm gtk+-1.2.10-56.el5.i386.rpm gtk+-devel-1.2.10-56.el5.i386.rpmlm_sensors-2.10.7-4.el5.rpmnet-snmp-libs-5.3.2.2-7.el5.rpmnet-snmp-utils-5.3.2.2-7.el5.rpmnet-snmp-5.3.2.2-7.el5.rpmfreeradius-1.1.3-1.4.el5.rpmfreeradius-mysql-1.1.3-1.4.el5.rpmlibtool-ltdl-devel-1.5.22-6.1.i386.rpmgamin-devel-0.1.7-8.el5.i386.rpmexpect-5.43.0-5.1.i386.rpmexpect-devel-5.43.0-5.1.i386.rpm pcre-devel-6.6-2.el5_1.7.i386.rpm______________________________________________________________________________1:2 apacherpm -e httpd –nodepstar -zxvf httpd-2.2.15.tar.gz -C /usr/srccd /usr/src/httpd-2.2.15配置./configure –prefix=/usr/local/http –enable-rewrite –enable-so –enable-auth-digest –enable-cgi –with-ssl=/usr/lib –enable-ssl –enable-suexec –with-suexec-docroot=/usr/local/http/htdocs 编译安装make && make installcd /usr/local/http/binvim apachectl 添加如下#! /bin/sh# chkconfig: 35 85 15# description: Apache is a World Wide Web Servercp /usr/local/http/bin/apachectl /etc/init.d/httpdchmod o+x /etc/init.d/httpdchkconfig –add httpdchkconfig httpd on配置apache 用户和属组useradd -M -s /sbin/nologin postfixcd /usr/local/http/conf/vim httpd.confUser postfixGroup postfix启动apacheservice httpd starthttp://localhost______________________________________________________________________________1.3 mysqlrpm -e mysql –nodepsuserdel -r mysqluseradd -M -s /sbin/nologin mysqltar -zxvf mysql-5.1.44.tar.gz -C /usr/src/cd /usr/src/mysql-5.1.44/./configure –prefix=/usr/local/mysql –with-mysqld-user=mysql –enable-thread-safe-client –enable-local-infile –with-charset=gbk –with-low-memoryMakeMake installcp support-files/my-medium.cnf /etc/my.cnf/usr/local/mysql/bin/mysql_install_db –user=mysqlchown -R root:mysql /usr/local/mysql/chown -R mysql /usr/local/mysql/var/echo "/usr/local/mysql/lib/mysql" >> /etc/ld.so.confldconfig/usr/local/mysql/bin/mysqld_safe –user=mysql &查看进程ps -ef | grep mysqld_saferoot 6315 4638 0 18:44 pts/2 00:00:00 /bin/sh /usr/local/mysql/bin/mysqld_safe –user=mysql是否开启3306端口netstat -ntulp | grep mysqltcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 6414/mysqld cp support-files/mysql.server /etc/init.d/mysqldchmod +x /etc/init.d/mysqldchkconfig –add mysqldchkconfig mysqld onexport PATH=$PATH:/usr/local/mysql/bin/echo "PATH=$PATH:/usr/local/mysql/bin/" >> /etc/profilemysqladmin -u root password 123456mysql -u root –pEnter password: Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 2Server version: 5.1.44-log Source distributionType ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.mysql> quit______________________________________________________________________________1:4 PHP安装libmcrypt mhash mcrypt解决无法加载mcrypt(1)tar -zxvf libmcrypt-2.5.8.tar.gz -C /usr/src/cd /usr/src/libmcrypt-2.5.8/./configureMakeMake installecho "/usr/local/lib" >> /etc/ld.so.confldconfig(2)tar -zxvf mhash-0.9.9.9.tar.gz -C /usr/src/cd /usr/src/mhash-0.9.9.9/./configureMakeMake install(3)tar -zxvf mcrypt-2.6.8.tar.gz -C /usr/src/cd /usr/src/mcrypt-2.6.8/LD_LIBRARY_PATH=/usr/local/lib ./configureMakeMake installrpm -e php –nodepstar -zxvf php-5.2.13.tar.gz -C /usr/srccd /usr/src/php-5.2.13./configure –prefix=/usr/local/php –with-apxs2=/usr/local/http/bin/apxs –with-config-file-path=/usr/local/php –with-gd –with-freetype-dir –with-mysql=/usr/local/mysql –enable-sockets –enable-mbstring –with-jpeg-dir –with-png-dir –disable-json –with-zlib –with-mysqli –with-mcryptmakemake installcp php.ini-dist /usr/local/php/php.inivim /usr/local/http/conf/httpd.conf 启用php模块53 LoadModulephp5_module modules/libphp5.so 54 AddType application/x-httpd-php .php 167<IfModuledir_module> 168 DirectoryIndexindex.phpindex.html 169</IfModule>vim /usr/local/http/htdocs/index.php <?php phpinfo(); ?> service apache stop 关闭 service apache start 启动 http://localhost______________________________________________________________________________1:5 phpMyAdmin数据库管理软件unzip phpMyAdmin-3.3.1-all-languages.zip -d /usr/local/http/htdocs/cd /usr/local/http/htdocs/mv phpMyAdmin-3.3.1-all-languages myadmincd phpMyAdmin/cp config.sample.inc.php config.inc.phpvim config.inc.php18 $cfg[‘blowfish_secret’] = ‘123456’; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */service httpd stopservice httpd starthttp://localhost/myadmin______________________________________________________________________________1:6 架设Discuz论坛mysql -u root –pcreate database bbsdb;grant all on bbsdb.* to runbbs@localhost identified by ‘123456’;unzip Discuz_7.2_FULL_SC_UTF8.zip -d discusmv discus/upload /usr/local/http/htdocs/bbscd /usr/local/http/htdocs/bbs/chown -R postfix config.inc.php attachments/ forumdata/ uc_client/data/cache/ 访问以下地址http://localhost/bbs/install/

cd /usr/local/http/htdocs/bbs/mv install/ install.lockchmod o-rx install.lock/访问bbs前台:http://localhost/bbs/访问bbs后台:http://localhost/bbs/admincp.php

为了技术方面交流欢迎加入QQ:1464251539

南非小蚂蚁_工作室” 博客,转载请与作者联系!

可我,仍在旅行的路上徘徊。等待着每一辆经过的车,让我走到更远的地方。

RedHat5.4搭建Discuz论坛系统

相关文章:

你感兴趣的文章:

标签云: