The realization of Lamp's phpMyAdmin, WordPress and Discuz

Source: Internet
Author: User
Tags wordpress database

First, test environment: CentOS 7,IP Address: 172.16.233.2

HTTPD is based on host name to implement the following applications

Vhost1:pma.bengbengtu.com, PhpMyAdmin

Vhost2:wp.bengbengtu.com, WordPress

Vhost3:dz.bengbengtu.com, Discuz


Second, use the installation package: httpd+mariadb+php

Httpd-2.4.6-31.el7.centos.x86_64

Mariadb-5.5.41-2.el7_0.x86_64

Php-5.4.16-23.el7_0.3.x86_64


Third, the realization process

(1) Build lamp first, the process is as follows:

 #yum  install httpd php php-mysql mariadb-server       [[email protected] ~]# getenforce enforcing[[email  protected] ~]# vim /etc/selinux/config            //Close selinux[[email protected] ~]# setenforce 0[[email protected]  ~]# getenforce Permissive[[email protected] ~]# iptables -F           //clean up firewall rules # systemctl start mariadb.service[[ email protected] ~]# mysql_secure_installation   //initialize MARIADB, set password to root user, delete anonymous user [[email protected] ~] #mkdir  /www/html/{pma,wp,dz} [[email protected] ~]#  vim /etc/httpd/conf.d/vhost.conf  //Create httpd Virtual host, based on host name 

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/73/6E/wKioL1X-GbfCdN2BAALGoLjYErQ820.jpg "title=" Qq20150920101803.png "alt=" Wkiol1x-gbfcdn2baalgoljyerq820.jpg "/>

Start httpd, build index.php files in each directory, Test no problem!


(2) Installation phpMyAdmin

The installation package used is Phpmyadmin-4.3.5-all-languages.zip

[[email protected] ~]# yum install -y unzip[[email protected] ~]# &NBSP;LLTOTAL&NBSP;9276-RW-------.   1 root root    1429 Sep  18 23:00 anaconda-ks.cfgdrwxr-xr-x. 10 root root    4096 jan   5  2015 phpmyadmin-4.3.5-all-languages-rw-r--r--.   1 root root  9489114 Sep 19 07:21 phpMyAdmin-4.3.5-all-languages.zip[[email protected]  ~]# mv phpmyadmin-4.3.5-all-languages /www/html/pma/[[email protected] pma]# ln &NBSP;-SV&NBSP;PHPMYADMIN-4.3.5-ALL-LANGUAGES&NBSP;PMA ' PMA '  ->  ' phpmyadmin-4.3.5-all-languages ' [[ email protected] pma]# cd pma/[[email protected] pma]# tr -d  ' A-za-z0-9_ '  < /dev/urandom | head -30 | md5sum  Cb5c094fbc66e3b71c29744b28aff277  -[[email protected] pma]# vim config.inc.php 

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/73/6E/wKioL1X-GvyQ1znpAACnJlLpSvA624.jpg "title=" Qq20150920102312.png "alt=" Wkiol1x-gvyq1znpaacnjllpsva624.jpg "/>

Configuration complete, test, problem occurred

/windows/system32/drivers/etc/hosts//Add host name resolution 172.16.233.2 pma.bengbengtu.com wp.bengbengtu.com in this machine Dz.bengbengtu.com[[email protected] pma]# Tail/var/log/httpd/error_log//View error log [[email protected] pma]# Yum install-y Php-mbstring//Solutions

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/73/6E/wKioL1X-G2WhLX59AAC7a_0sTyU484.jpg "title=" Qq20150918233706.png "alt=" Wkiol1x-g2whlx59aac7a_0styu484.jpg "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/73/70/wKiom1X-GZzStl_IAALv0tWEvDY972.jpg "title=" Qq20150918233624.png "alt=" Wkiom1x-gzzstl_iaalv0twevdy972.jpg "/>

This phpMyAdmin deployment is complete!


(3) WordPress

The installation package used is: Wordpress-4.3.1-zh_cn.zip

[Email protected] ~]# unzip wordpress-4.3.1-zh_cn.zip [[email protected] ~]# MV Wordpress/www/html/wp/[[email protected    ] ~]# MySQL MariaDB [(none)]> CREATE database WordPress; Create a WordPress database query OK, 1 row Affected (0.00 sec) MariaDB [(none)]> grant all on wordpress.* to ' wpuser ' @ ' localhost ' I Dentified by ' wppasswd '; Query OK, 0 rows Affected (0.00 sec) MariaDB [(none)]> flush privileges; Query OK, 0 rows Affected (0.00 sec) [[email protected] wp]# chmod 777 wordpress///give WordPress directory permissions [[email protected] W p]# lltotal 4drwxrwxrwx. 5 root root 4096 Sep 22:38 WordPress

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/73/70/wKiom1X-G_Hji2SeAAI6FGC8JI8277.jpg "style=" float: none; "title=" Qq20150919001709.png "alt=" wkiom1x-g_hji2seaai6fgc8ji8277.jpg "/>650" this.width=650; "src=" http:/ /s3.51cto.com/wyfs02/m01/73/70/wkiom1x-g_hyzhbdaai0ymfvegy939.jpg "style=" Float:none; "title=" Qq20150919003327.png "alt=" Wkiom1x-g_hyzhbdaai0ymfvegy939.jpg "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/73/6E/wKioL1X-HzSQNdRqAAKrAVVLUyU112.jpg "title=" Qq20150919003508.png "alt=" wkiol1x-hzsqndrqaakravvluyu112.jpg "/> this wordpress deployment is complete!


(4) Discuz

The installation package used is: Discuz_x3.2_sc_utf8.zip

[Email protected] ~]# unzip discuz_x3.2_sc_utf8.zip [[email protected] ~]# RM-RF readme/utility/[[email protected] ~]# MV upload/*/www/html/dz/[[email protected] ~]# chmod 777/www/html/dz/[[email protected] ~]# cd/www/html/dz/

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/73/70/wKiom1X-HHXxAH0iAALd6fFCik4270.jpg "title=" Qq20150919010705.png "alt=" Wkiom1x-hhxxah0iaald6ffcik4270.jpg "/>

[email protected] dz]# cp config/config_global_default.php config/config_global.php [[email protected] dz]# MV config/ config_ucenter_default.php config/config_ucenter.php [[email protected] dz]# chmod 777 Data/{cache,avatar,plugindata, Download,addonmd5,template,threadcache,attachment/{album,forum,group}}[[email protected] dz]# chmod 777 Data[[email Protected] dz]# chmod 777 Data/attachment/[[email protected] dz] #chmod 777 Data/log/[[email protected] dz]# chmod 777 Uc_c Lient/data/cache/[[email protected] dz]# chmod 777 Uc_server/data/{cache,avatar,backup,logs,tmp,view}

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/73/70/wKiom1X-HJvRjNMNAAJ5dPnym1g730.jpg "style=" float: none; "title=" Qq20150919012509.png "alt=" Wkiom1x-hjvrjnmnaaj5dpnym1g730.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/73/6E/wKioL1X-HteTh_1RAAJVgYc4rdM758.jpg "style=" float: none; "title=" Qq20150919012517.png "alt=" Wkiol1x-hteth_1raajvgyc4rdm758.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/73/70/wKiom1X-HJzQJXa1AAKTttlZMVo054.jpg "style=" float: none; "title=" Qq20150919013238.png "alt=" Wkiom1x-hjzqjxa1aaktttlzmvo054.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/73/6E/wKioL1X-HtnBsD3MAAOiBawkjrE873.jpg "style=" float: none; "title=" Qq20150919013302.png "alt=" Wkiol1x-htnbsd3maaoibawkjre873.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/73/6E/wKioL1X-HtvTsrpoAATMa6MCdu8126.jpg "style=" float: none; "title=" Qq20150919013404.png "alt=" Wkiol1x-htvtsrpoaatma6mcdu8126.jpg "/>

This discuz deployment is complete!


This article is from the "Bengbengtu" blog, make sure to keep this source http://bengbengtu.blog.51cto.com/9505633/1696473

The realization of Lamp's phpMyAdmin, WordPress and Discuz

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.