Here is an example of how to build a dynamic website using the lnmp environment.

Source: Internet
Author: User
Tags php mysql

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.

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.