LEMP is a popular software stack used for hosting dynamic websites and web applications. It consists of four main components: Linux, Nginx, MySQL, and PHP. AlmaLinux 8 is a Linux distribution that provides a stable and secure operating system for servers. By installing and configuring the LEMP stack on an AlmaLinux 8 server, you can create a powerful platform for hosting websites and web applications that require high performance and reliability.
LEMP (AlmaLinux 8)
- OS: almalinux 8
Description
Software included
Package | Version |
---|---|
Nginx | 1.22.1 |
PHP | 8.1.12 |
certbot | 1.22.0 |
postfix | 3.5.8 |
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/opt/remi/php81/php.ini
. When changing a setting, the PHP-FPM service must be restarted with the commandsystemctl restart php81-php-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.