In general, we will install Nginx, PHP are installed in the same container, in order to expand convenience, we hope that nginx container and PHP container separate. Then you can use the Docker link command to do this.Required Image:
Nginx 1.
Nginx's support is high concurrency, strong load balancing, low resource consumption makes it the first choice for Linux Web server, especially for small memory VPS, this is more obvious, make it win Apache.
The installation of LNMP is described
1, PHP.ini (/usr/local/php/etc/php.ini) in the configuration found in
Cgi.fix_pathinfo=0
Change it to
Cgi.fix_pathinfo=1
2, nginx configuration file/etc/nginx/conf/nginx.conf Note the following sections
The code is as follows
After successfully compiling the installation Nginx 1.4, PHP 5.4 and successfully starting Nginx and PHP-FPM on CentOS, access the PHP prompt "File not found." And see in the error log:
Copy Code code as follows:
2013/10/22 20:05:49
LNMP use socket to connect Nginx optimize PHP-FPM performance
There are 2 ways to connect fastcgi nginx: TCP and UNIX domain sockets
What is a UNIX domain socket. --Wikipedia
A Unix domain socket or an IPC socket is a terminal that enables
Nginx is actually just a reverse proxy server that receives the request to see if the current request is a. php file and, if so, to the php-fpm for processing, and then to the user after the result is obtained. So there are two permissions to
munin Monitoring MongoDB 1, download the Munin MongoDB plugin Https://github.com/erh/mongo-munin 2, installation of Munin MongoDB dependency # yum Install Pymongo This plugin is written in Python, and if not installed, the following error will be
Some PHP-FPM problems have been encountered in the previous project: Because some of the site's interface, in particular cases of slow response (1-2 minutes), the delay does not end, resulting in more and more php-fpm, and finally reached 127, the
Nginx and PHP-FPM have built a status page that is very helpful to understand the status of Nginx and to monitor Nginx. For subsequent monitoring, we need to first understand the Nginx status page.
1. Enable Nginx status configuration
Add location
Environmental deployment has been a major problem, both in the development and production environments, but Docker provides a consistent environment for packaging the development environment and production environment in lightweight fashion. Greatly
Project requirements to achieve a free ticket to the function, involving high concurrency problems, research for a few days, record down, welcome workers throw Bricks ~ ~The entire project is the Php+nginx+mysql architecture, since PHP is blocked
In this article, we will specifically explain the configuration of Nginx, PHP-FPM, and MySQL running under individual users.First of all to do a description: Nginx itself can not handle PHP, it is just a Web server. When a client request is received,
Environment: CentOS Release 6.7 (Final)Installation software: nginx+mysql+phpInstallation Tool: Yum1. Install Nginx, because the default Yum base source is not nginx, so this way to add Nginx official source to the local1) Address:
PHP7 and PHP5 coexist in CentOS7Original referencePrincipleThe idea is simple: PHP5 is installed through Yum in/usr/, sockets in/VAR/RUN/PHP-FPM.SOCKET,PHP7 themselves compiled in/USR/LOCAL/PHP7, sockets in/var/run/ PHP7-FPM.SOCKET,NIGNX Specifies
The previous period of tossing, quite a bit of trouble, the process found that many of the online information is older and outdated,So here also simple to rearrange the process, to win a post to solve the problem.Build Nginx, PHP, and MySQL
Research on Security Configuration of lnmp Virtual Host0x00 background
As we all know, the security of virtual hosts is not good, especially preventing cross-directory attacks from becoming the focus. Apache + php servers are relatively simple to
Today, we started VPS again. Unfortunately, they didn't provide the archlinux system and had to choose Debian. But lenny's PHP version is too old to include fpm, I don't want to waste any time compiling, So google finds a source that provides
The LNMP automatic start/stop control script often needs to restart LNMP after changing the LNMP configuration. here, an automatic script is written to restart LNMP. In addition to convenient restart, the function of disabling and enabling is also
Core Summary: The user used by the php-fpm sub-process cannot be the website file owner. Any violation of this principle does not comply with the minimum permission principle.
According to continuous feedback in the production environment, php
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.