LEMP is a web server stack that is commonly used for hosting websites and web applications. LEMP stands for Linux, Nginx, MySQL (or MariaDB), and PHP. Ubuntu 22.04 is a popular Linux distribution that can be used to set up a LEMP stack. Nginx is the web server software in the LEMP stack, while MySQL (or MariaDB) is the database management system, and PHP is the server-side scripting language. This combination of software allows for high-performance and reliable web hosting.
LEMP (Ubuntu 22.04)
- OS: ubuntu 22
Description
Software included
Package | Version |
---|---|
Nginx | 1.22.1 |
PHP | 8.1.13 |
certbot | 1.21.0 |
postfix | 3.6.4 |
MariaDB | 10.10.2 |
Initial start of the service
To start working directly with the application, all you need to do is upload the content that you want to be served by Nginx to the /usr/share/nginx/html
directory. Once you've done this, you can visit the IP address assigned to your virtual machine in your browser to view the content you've uploaded. Of course, you can also point a domain to the corresponding IP address without having to configure anything further.
Quick settings and frequently asked questions
- Logging into the cloud service is done using an SSH key or password that you have specified.
- By default, the document root where you should upload your applications is
/usr/share/nginx/html
- You can find your MySQL root password at
/root/.my.cnf
- This application image is configured to work with PHP-FPM. Basic PHP settings are located in
/etc/php/8.1/fpm/php.ini
. When changing a setting, the PHP-FPM service must be restarted with the commandsystemctl restart php8.1-fpm
. You can find additional information about PHP by running thephp-i
command. Information about installed PHP modules can be found with thephp -m
command.