Lamp's fastcgi way to apply Phpmyadm and WordPress

Source: Internet
Author: User

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

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.