Preparatory work:
Turn off firewall, SELinux, ensure connectivity is not affected
Service Iptables Stop
# chkconfig iptables off # iptables -F
1. Prepare to build the environment first
Install httpd, PHP, Php-server, Mysql-server.
Yum install httpd php php-server mysql-server
开启MySQL、httpd服务 # service mysqld start 对myuser用户进行授权 # mysql> grant select,insert,update on *.* to ‘myuser‘@‘172.16.%.%‘ identified by ‘123456‘; # service mysqld restart # service httpd start
2. Create a virtual host
Create a virtual host under the httpd fragment configuration file (/etc/httpd/conf.d/) virhosts.conf
Create a directory in a virtual host
Mkdir-pv/myweb/vhosts/vh1
3. Provide the network interface for the IP in the virtual host, add the virtual host tag
IP addr Add 172.16.12.12/16 dev eth0 label eth0:0
(若要永久生效选择写入配置文件) 将本地论坛、博客及phpMyAdmin应用程序上传至/myweb/vhosts/vh1目录下首先解压Discuz_X3.2_SC_GBK.zip # unzip Discuz_X3.2_SC_GBK.zip # mv Discuz_X3.2_SC_GBK/upload/ bbs/ 重启httpd服务 # service httpd restart 打开浏览器输入172.16.12.12/bbs安装论坛  按照提示进行安装和设置!
Installing phpMyAdmin
Tar XF phpmyadmin-3.5.4-all-languages.tar.gz
# cp -a phpMyAdmin-3.5.4-all-languages/config.sample.inc.php phpMyAdmin-3.5.4-all-languages/config.php # mv phpMyAdmin-3.5.4-all-languages pma 访问“172.16.12.12/pma”进行安装 安装博客 上传phpwind_v8.7_GBK.zip文件 解压缩文件 # unzip phpwind_v8.7_GBK.zip # mv phpwind_GBK_8.7/upload phpwind 访问“172.16.12.12/phpwind”进行安装 
Implementation of CENTOS6 based on http2.2 Building Forum, blog system and phpMyAdmin application