Home > Backend Development > PHP Tutorial > Create LNMP and use WORDPRESS for the first time

Create LNMP and use WORDPRESS for the first time

WBOY
Release: 2016-07-28 08:27:29
Original
926 people have browsed it

It’s been a week, and I’m writing about what I’ve learned this week. Although I feel a bit heavy now, technology still belongs to technology.

Today I mainly built the entire LNMP environment and configured it. I can’t say it’s configured, I can only say it’s barely usable.

After installing according to the old boy’s book, the environment I built will always have problems that cannot be found in the book. The first one is that the book uses the compilation method to install PHP. Every time I compile, it either fails to compile or fails. The compiler lacked PHP-FPM, a key environment. This problem bothered me for two nights. I thought it was installed, but I found that the PHP-FPM service could not be started at all. I could only keep looking for resources and reinstalling. I still chose to use YUM to install it and looked for the source on the Internet. After many failures and ignoring them, I found a source that can be installed directly with YUm and has PHP-FPM service. The URL is as follows. I will never do it again. The yum download is missing PHP-FPm.

http://www.51testing.com/html/02/n-3578202.html

The second one is, after I downloaded PHP and the PHP installation environment, I found the PHP, TEST web page , can't be opened. It was 404 at first. After I changed nginx.conf, it became file not found. I was very confused. Why is this happening? Obviously both NGINX and PHP services are enabled, why is this happening?

The methods I found directly on the Internet were of no use. I also changed the settings that were said to be changed, and it almost collapsed.

I don’t know what happened, but I suddenly remembered that I can look at the error log. I finally understand what my problem is. Or the environment in the book must correspond to my own environment. I can’t read the book blindly. To combine the things in the book with my computer, the location in the book is not where my actual HTML is. I have to change it at my actual location.

So far, the two problems have been solved. I also successfully installed the LNMP environment. The sign of success is that I installed the blog software. wordpress. 建立LNMP,初次用WORDPRESS

There are so many for now. I was looking at some NGINX configuration optimization over the weekend. I feel like I can understand so much after reading them all. I will continue to read them. After that, I will also read PYTHON. . . .

The above has introduced the establishment of LNMP and the first time to use WORDPRESS, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template