Here is an example of how to build a dynamic website using the lnmp environment.
Log on to mysql from mysql-uroot-p. If the default password is null, press Enter.
Create database bk create a database named bk
Grant all on bk. * to bk @ 'localhost' identified by '000000'; create a user and grant permissions.
The first bk is the database, and the second bk is the Database User Password 123456.
Flush privileges refresh permission
\ Q exit Database
The package of the website configuration file.
Decompress the package and copy the files in the wordpress directory. This is your website file.
The original tar package can be backed up elsewhere.
Such as root/wordpress
My path is a bit complicated.
Add index. php after index
The following is the same path.
Restart nginx to check whether php mysql is started.
Domain name resolution firewall is basically a good job.
Visit the past as shown in.
Click let s go
Enter the username and password of the database you created before.
An error is reported in the middle.
Sorry, but I can't write the wp-config.php file.
You can create the wp-config.php file manually and paste the following text into it.
Solution.
Copy the content in the box and write a file named "wp-config.php" to your website root directory.
You can enable it again.
Title
User Name
Password (the password is weak but usable)
Email
Then log on to the background with your username and password.
Publish an article.
Dynamic Website. Lnmp deployment is complete.