APM, XCache, Php_module

Source: Internet
Author: User

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

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.