wordpress blog installation environment

WordPress is using PHP language development blog platform, users can set up their own Web site on the server that supports PHP and MySQL database. You can also WordPress as a content management system (CMS) to use.

1. prepare the database environment

 mysql> create database wordpress;

Query OK, 1 row affected (0.01 sec)

mysql> grant all on wordpress.* to wordpress@'localhost' identified by '123456';
Query OK, 0 rows affected (0.00 sec)

mysql> grant all on wordpress * to wordpress@'192.168.80.% 'identified by' 123456 ';. # PHP and mysql if not on the same network segment, you specify the network segment can access
Query OK, 0 rows affected (0.00 sec )

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

2.下载安装
[root@fox php-7.0.14]# cd /root/toosl
-bash: cd: /root/toosl: No such file or directory
[root@fox php-7.0.14]# cd /root/tools
[root@fox tools]# wget https://cn.wordpress.org/wordpress-4.5.1-zh_CN.tar.gz
--2019-06-09 01:15:52-- https://cn.wordpress.org/wordpress-4.5.1-zh_CN.tar.gz
Resolving cn.wordpress.org... 198.143.164.252
Connecting to cn.wordpress.org|198.143.164.252|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8181644 (7.8M) [application/octet-stream]
Saving to: “wordpress-4.5.1-zh_CN.tar.gz”

100%[===========================================================>] 8,181,644 268K/s in 31s

2019-06-09 01:16:24 (261 KB/s) - “wordpress-4.5.1-zh_CN.tar.gz” saved [8181644/8181644]

[root@fox tools]# tar xf wordpress-4.5.1-zh_CN.tar.gz

#web directory can be found by viewing the nginx configuration files, /etc/nginx/conf.d/*.conf, this is my profile path, copy the files in the past
[root @ fox tools] # cp -a wordpress / * / usr / share / nginx / html /   

 

3. The browser opens 192.168.80.131/index.php, the following interface

 There are suggested, performed [root @ fox nginx] # chown -R nginx.nginx ./ still can not write, but to help create the following file manually, and then continue

Solutions to problems are many, visual only need to manually create can be successful, and therefore will not toss directory permissions issue

 Successful installation

 

Then, remember delete the root directory of index.html, index.php increase in the configuration file, the browser opens IP address, enter the user name and password to log system

Here if you do not delete the index.html, the system has been demonstrated nginx welcome page

 

 

Guess you like

Origin www.cnblogs.com/micfox/p/10992681.html