Use LAMP environment to build a wordpress forum


1. Build LAMP architecture     

(1) rpm builds a LAMP environment     

[root@HK36 ~]# yum install httpd mysql-server mysql php php-mysql  -y

 

(2) Start apache, mysql related services, and set the boot to start automatically     

image.png

(3) Set the mysql password     

image.png

 

(4) Check whether the test website supports php     

[root @ HK36 ~] # cd / var / www / html /

[root@HK36 html]# vim index.php

image.png

Login to the 192.168.2.103 web page test locally

image.png

 

 

 

2. Build a wrodpress blog

(1) Enter the mysql data to establish the database HK required to build wrodpress

 

mysql> create database HKC;

Query OK, 1 row affected (0.00 sec)

 

mysql> show databases;

+--------------------+

| Database           |

+--------------------+

| information_schema |

| HKC                 |

| mysql              |

| test               |

+--------------------+

4 rows in set (0.00 sec)

(2) Upload the wrodpress file to the system to decompress and install

 [root@HK36 ~]# ls

anaconda-ks.cfg  install.log  install.log.syslog  wordpress-4.8-zh_CN.zip

[root@HK36 HKC]# unzip wordpress-4.8-zh_CN.zip

[root@HK36 ~]# ls

anaconda-ks.cfg  install.log.syslog   wordpress               wordpress-4.8-zh_CN.zip

install.log      mysql-5.5.32.tar.gz

(3) Move the decompressed file to /var/www/html/

[root@HK36 ~]# cp -a wordpress /var/www/html/HKC/

(4) Building a forum

Enter 192.168.2.103/HKC/ on the page and follow the prompts to build

image.png

image.png

[root@HK36 HKC]# vim wp-config.php

image.png

image.png

image.png




Build Mysql-proxy to achieve master-slave synchronization read-write separation and browse:http://blog.51cto.com/13719714/2107691

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325001797&siteId=291194637