Knowledgebase
This guide covers how to install a LEMN stack to a Ubuntu machine. A LEMN stack is required for the majority of Weblutions products to operate.
A LEMN stack is a group of programs that will are the core dependencies for Weblutions products.
L inux
E ngine-X (or Nginx)
M ySQL Database
N odeJs
Table of Contents
Know the server login details
Forward the desired domain to the servers IP address via an A Record
To install the the LEMN stack, login to the server via SSH/Termius
Update the servers package repository
apt-get -y updateInstall the items through the package manager
apt-get install nginx mysql-server certbot python3-certbot-nginx -yThis may take some time, a prompt to select yes or no is likely to appear during installation.
Install Node and NVM by using our Node Version Manager install guide.
It's recommended to complete the MySQL server configuration before using it to ensure it meets desired requirements and is secure.
Run the configuration command to begin
sudo mysql_secure_installationLogin to MySQL
sudo mysqlAlter the user to set the password
Be sure to replace the CHANGE_ME text to the desired password.
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'CHANGE_ME';Reload the MySQL servers permissions, known as flushing
FLUSH PRIVILEGES;Exit the MySQL server console
exitMySQL is now setup and functional.
To allow a domain to function on SSL certbot can be used to generate the certificate. To create the certificate replace the example.com in the below command.
sudo certbot --nginx -d example.comIf directed select option 2 to redirect all traffic to the SSL connection.
Run the dry-run certbot command to have the certificate automatically renew itself when its due to be remade.
sudo certbot renew --dry-runAll content is now installed and configured. Refer to the specific product documentation if needed for more product specific setup steps.