In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
CentOS 7, lamp (php-fpm)
Requirements: (1) the three are separated from three hosts
(2) one virtual host is used to provide phpMyAdmin; and the other virtual host is used to provide wordpress
(3) xcache
1. Preparatory work:
Prepare three servers, which are respectively used to install httpd,php-fpm,mariadb. Configure the network and yum sources, and turn off selinux and firewall
Install and configure the httpd server
1. Install the httpd service
Yum install httpd-y
2. Edit the httpd configuration file and create 2 virtual hosts, and create a new / etc/httpd/conf.d/vhost.conf
DocumentRoot / var/www/html/
ServerName www.blog.com
ProxyRequests off
ProxyPassMatch ^ / (. *\ .php) $fcgi://172.18.24.11:9000/var/www/html/$1
DocumentRoot / var/www/html/
ServerName www.mysql.com
ProxyRequests off
ProxyPassMatch ^ / (. *\ .php) $fcgi://172.18.24.11:9000/var/www/html/$1
3. Configure php-fpm service
1. Install the php-fpm,php-mbstring,php-mysql service
Yum install php-fmp php-mbstring,php-mysql-y
2. Edit / etc/php-fpm.d/www.conf and modify the following:
Listen = 172.18.24.11 9000
Listen.allowed_clients = 172.18.24.10
3. Create / var/www/html/
Mldir-pv / var/www/html
4. Put wordpress and phpmyadmin under this file directory
4. Install and configure mariadb service
1. Install mariadb on the C server
Yum install mariadb-server
2. Start the mariadb service and enter the mysql database
Systemctl start mariadb.service
Create a database wp
Mysql > CREATE DATABASE wp
Add user wpuser and grant remote login permission
GRANT ALL ON *. * TO wpuser@'%.%' IDENTIFIED BY 'wppasswd'
5. Configure wordpress
1. First, cp configuration file
Cp wp-config-sample.php wp-config.php
2. Then edit the configuration file as follows:
/ / * * MySQL settings-specific information comes from the host you are using * * / /
/ * * name of WordPress database * /
Define ('DB_NAME',' wp')
/ * * MySQL database user name * /
Define ('DB_USER',' wpuser')
/ * * MySQL database password * /
Define ('DB_PASSWORD',' wppasswd')
/ * * MySQL host * /
Define ('DB_HOST',' 172.18.24.11')
Configure the configuration file of phpmyadmin
1. Cp the configuration file
Cp config.sample.inc.php config.inc.php
2. Then edit the configuration file as follows:
You only need to fill in a string of random numbers at the end of the string and you can get $cfg ['blowfish_secret'] =' A7kNC35a2OFOsQuan; / * YOU MUST FILL IN THIS FOR COOKIE AUTH! * /
Note: it needs to be on the server that copies wordpress and phpmyadmin to httpd.
VI. Compile and install xcache
The specific steps are as follows:
How to compile and install xache:
# yum install php-devel
# cd xcache-3.2.0
# phpize
#. / configure-enable-xcache-with-php-config=/usr/bin/php-config
# make & & make install
# cp xcache.ini / etc/php.d/
Use php-v to check whether xcache is installed successfully
At this point, the installation is successful.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.