Project:
CentOS 7, APM + XCache, RPM package, PHP module
A) a virtual host to provide phpMyAdmin, another virtual host to provide WordPress;
b) Provision of HTTPS services for Phpmyadmim
The project steps are detailed as follows:
1, the project, the target host to be able to connect with the network, the need to shut down the firewall, and then yum packages.
# iptables-f
# Setenforce 0
# yum Install httpd php php-mysql mariadb-------Note the installation of the development environment
2, open the service is not opened, or error
# Systemctl Start httpd
# Systemctl Start mariadb
3, configure the two virtual host configuration files:
<virtualhost 172.16.72.1:80>
DocumentRoot "/myweb/vhosts/www"
ServerName www.qhdlink.com
DirectoryIndex index.php
Proxyrequests OFF
Proxypassmatch ^/(. *\.php) fcgi://127.0.0.1:9000/myweb/vhosts/www/$1
<directory "/myweb/vhosts/www" >
Options None
AllowOverride None
Require all granted
</Directory>
</VirtualHost>
4, WordPress
# MKDIR/DATA/VHOSTS/WWW1
# Tar XF wordpress-4.3.1.tar.gz
# CP WORDPRESS/DATA/VHOSTS/WWW1
# mysql-p
Mysql> CREATE DATABASE wpdb----------creating a library
Mysql> Grant all on wpdb.* to ' wpuser ' @ ' 172.16.%.% ' identified by ' Wppass '------------authorized
# CP wp-config-sample.php wp-config.php----------Modify configuration file
5. Test the communication between PHP and MySQL
Test PHP:
<?php
Phpinfo ();
?>
Test MySQL Connectivity:
<?php
$conn = mysql_connect (' 172.16.100.71 ', ' testuser ', ' testpass ');
if ($conn)
echo "OK";
Else
echo "Failure";
?>
Index http://www1.qhdlink.com/wordpress/index.php
6, PhpMyAdmin
# MKDIR/DATA/VHOSTS/WWW2
# Tar XF phpmyadmin-4.4.14.1.tar.gz
# Cp-r PHPMYADMIN-4.4.14.1/DATA/VHOSTS/WWW1
www]# LN-SV phpmyadmin-4.4.14.1-all-languages/phpmyadmin----------Note The file directory connection location
# CP config.sample.inc.php config.inc.php
# OpenSSL Rand-hex 8
# Vim config.inc.php
$cfg [' blowfish_secret '] = ' 640b56f72820ace8 '
Retrieving HTTP://WWW1.QHDLINK.COM/PHPMYADMIN-4.4.14.1/
7. XCache Accelerator
# yum Install Php-xcache
# ab-c 50-n www2.qhdlink.com/wordpress/index.php
APM, XCache, Php_module