LAMPof theFastCGIWay to applyPhpmyadmand theWordpress
Two host computers
a single A Apache and php-fpm
a single B MARIADB Server
1.A Install the required packages and start the service
Yum Install httpd php-fpm php-mysql
Systemctl Start httpd
Systemctl Start PHP-FPM
B:yum Install Mariadb-server
Systemctl Start mariadb
Run Security script: Mysql_secure_installation
2 a:vim/etc/httpd/conf.d/fcgi.conf
DirectoryIndex index.php
Proxyrequests OFF
Proxypassmatch ^/(. *\.php) $fcgi://127.0.0.1:9000/var/www/html/$1
Systemctl Reload httpd
3 b Database Create user and authorize
Mysql-uroot-pcentos
> CREATE Database blogdb;
> Grant all wpdb.* to [email protected] ' 192.168.136.% ' identified by ' CentOS ';
> Flush Privileges;
650) this.width=650; "src=" Https://s3.51cto.com/oss/201710/24/a78ae57571a20eaa537b0692d96b8c49.png "title=" 1.png " Style= "width:500px;height:175px;" hspace= "0" height= "175" width= "$" vspace= "0" border= "0" alt= " A78ae57571a20eaa537b0692d96b8c49.png "/>
Deploy WordPress
Tar xvf wordpress-4.8.1-zh_cn.tar.gz
Cp-r Wordpress/var/www/html/blog
Cd/var/www/html/blog
CP wp-config-sample.php wp-config.php
Vim wp-config.php
Define (' db_name ', ' wpdb ');
Define (' Db_user ', ' wpuser ');
Define (' Db_password ', ' CentOS ');
Define (' Db_host ', ' 192.168.37.107 ');
4 Testing the connection to PHP: http://192.168.136.170/index.php
Test WordPress Http://192.168.136.170/blog
650) this.width=650; "src=" Https://s3.51cto.com/oss/201710/24/75d7ad5a425c06172899aca9f2e81fb0.png "title=" 2.png " Style= "width:500px;height:255px;" hspace= "0" height= "255" width= "$" vspace= "0" border= "0" alt= " 75d7ad5a425c06172899aca9f2e81fb0.png "/>
This article is from the "13162732" blog, please be sure to keep this source http://13172732.blog.51cto.com/13162732/1975463
Lamp's fastcgi way to apply Phpmyadm and WordPress