For many of the students familiar with the VPS, after the launch of the VPS, the first thing to do is to build a server environment. In order to save trouble, convenient, online has a popular one-click installation package. At present, there are two kinds of roughly popular: Lnmp and Lnamp.
LNMP is a combination of linux+nginx+mysql+php, characterized by the use of Nginx's fast and lightweight, replacing the previous lamp (linux+apache+mysql+php) way. Because the installation is convenient, and the installation script is updated at any time, LNMP becomes the preferred one-click installation package for many webmasters.
Lnmp the advantages of the way: Occupy less VPS resources, Nginx configuration is relatively simple, using the fast-cgi way to dynamically parse PHP script.
The disadvantage of Lnmp way: PHP-FPM component load capacity is limited, when the traffic is huge, php-fpm process easily zombie, prone to 502 bad gateway error.
Lnamp is a combination of linux+nginx+apache+mysql+php, which is characterized by the use of Nginx as a static script parsing, and the use of Nginx forwarding features, the dynamic script parsing to the Apache to deal with, so, Can make full use of the characteristics of the two Web servers, for the traffic needs of a large site, is a very good choice.
Advantages of Lnamp: Because Apache itself is better at handling PHP than PHP-FPM, it is not easy to have errors similar to 502 bad Gateway. Suitable for sites with large traffic.
The disadvantage of Lnamp way: Compared to the LNMP way will occupy some resources, in addition, the configuration of virtual host needs to modify nginx and Apache configuration files, a little more trouble.