Chapter wordpress under lnmp environment (build personal blog)

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.
WordPress is a personal blog system, and gradually evolved into a content management system software, it uses the PHP language and MySQL database development, users can use their own blog on the server that supports PHP and MySQL database.
There are many free WordPress templates developed by third parties, installation is easy to use. But to do its own template, you will need to have some expertise. For example, the HTML code in an application at least you want to know the Standard Generalized Markup Language, CSS, PHP and other related knowledge.
WordPress supports Chinese official version, while lovers of Chinese language pack developed by a third party, such as wopus Chinese language pack. WordPress has thousands of kinds of plug-ins and countless theme template styles.

Package to / usr / local / the src
CD / usr / local / the src
wget https://wordpress.org/wordpress-4.9.7.tar.gz
decompression wordpress specified directory / Data / Server
mkdir -p / Data / Server
the tar -zxvf wordpress-4.9.7.tar.gz -C / data / server / nginx / html /
Chapter wordpress under lnmp environment (build personal blog)

cd / the Data / Server / nginx / HTML /
chown -R www.www wordpress
look wordpress How much authority, if not 755 then 755 changed
now modify the configuration
cd / the Data / Server / nginx / conf
vim nginx.conf
Chapter wordpress under lnmp environment (build personal blog)

Chapter wordpress under lnmp environment (build personal blog)

Chapter wordpress under lnmp environment (build personal blog)

vim /data/server/nginx/html/wordpress/wp-config.php
Chapter wordpress under lnmp environment (build personal blog)

The hosts configuration file editing windows right to run as administrator to open the way ctrl + o
Chapter wordpress under lnmp environment (build personal blog)

Chapter wordpress under lnmp environment (build personal blog)

Write ip domain
Chapter wordpress under lnmp environment (build personal blog)

Open mysql service
cd / the Data / Server / mysql / Support-Files
./mysql.server Start

Then cd / the Data / Server / MySQL / bin
./mysql -u root -p
create a database
Chapter wordpress under lnmp environment (build personal blog)

Use Database
Chapter wordpress under lnmp environment (build personal blog)

Set Username Password
Chapter wordpress under lnmp environment (build personal blog)

drop out
Chapter wordpress under lnmp environment (build personal blog)

Turn off the firewall
systemctl STOP firewalld
setenforce 0
web access ip / wordpress
Chapter wordpress under lnmp environment (build personal blog)

Configuration
Chapter wordpress under lnmp environment (build personal blog)

Guess you like

Origin blog.51cto.com/14354119/2427750