Implementation of CENTOS6 based on http2.2 Building Forum, blog system and phpMyAdmin application

Source: Internet
Author: User
Tags phpmyadmin

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目录下![](http://i2.51cto.com/images/blog/201805/05/a276a12a5d947ec5e7235901be6747a8.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)首先解压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安装论坛    ![](http://i2.51cto.com/images/blog/201805/05/eca9e87e3b357e3ce72aa571e0fd9cd7.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)        按照提示进行安装和设置!

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”进行安装        ![](http://i2.51cto.com/images/blog/201805/05/87c60fcfdf4f234505f4840e9398cf39.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)安装博客    上传phpwind_v8.7_GBK.zip文件    解压缩文件        # unzip phpwind_v8.7_GBK.zip            # mv phpwind_GBK_8.7/upload phpwind        访问“172.16.12.12/phpwind”进行安装    ![](http://i2.51cto.com/images/blog/201805/05/3c8288be3e68f8be6de03528cb29be25.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)

Implementation of CENTOS6 based on http2.2 Building Forum, blog system and phpMyAdmin application

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.