LNMP is a widely-used web server solution. LNMP consists of the Linux operating system, NGINX web server, MySQL relational database management system, and PHP programming language. This topic describes the architecture and diagram of an LNMP stack and provides references for the method used to deploy an LNMP stack.
Architecture of an LNMP stack
Linux: serves as the core of the LNMP stack, offers a stable operating system environment free of charge, and supports multiple distributions, such as Alibaba Cloud Linux, CentOS, and Ubuntu.
NGINX: is a high-performance web server well-known for its high concurrent processing capability. NGINX can process static content and use Fast Common Gateway Interface (FastCGI) to collaborate with PHP to process dynamic content.
MySQL: is a relational database management system used to store website data within the LNMP stack. MySQL provides data query and storage capabilities.
PHP: is a server-side scripting language used to generate dynamic web page content. You can integrate PHP with HTML and use PHP in conjunction with NGINX and MySQL to provide comprehensive web application development capabilities.
Diagram
Deployment method
For information about how PHP connects to a MySQL database and how NGINX proxies PHP, see Deploy an LNMP stack.