Luan Luciano
Member
Hello, this tutorial is a part of the main topic: "Full infrastructure tutorial to start a TF 1.x server on Ubuntu 22.04" ...
It is part of the 1st installation of the LEMP stack on Ubuntu 22.04: NGINX.
STEP 1 - HOW TO INSTALL THE NGINX WEB SERVER
To show web pages to your site visitors, we are going to use Nginx, a high performance web server. We will use the following command to install Nginx:
When prompted, enter Y to confirm that you want to install Nginx. Once the installation is complete, the Nginx web server will be up and running on your machine.
Now check the status of Nginx to see if it is correctly active:
Something like this should appear:

As you can see in green: active (running), that is, it is active and working.
You can also check the version of nginx installed with the command:
I got as answer on 14NOV22: nginx version: nginx/1.18.0 (Ubuntu)
STEP 2 - RELEASING THE PORTS ON THE FIREWALL
Here the answer would be quite broad as you should know what kind of firewall you are using.
If you have the UFW firewall enabled, you will need to allow Nginx connections. Nginx registers a few different application profiles in UFW after installation. To check which UFW profiles are available, run:
The options will appear:

It is recommended that you enable the most restrictive profile which will still allow the traffic you need. In case you haven't already configured SSL (HTTPS) for your server, you just need to allow regular HTTP traffic on port 80 using the command:
Verify the change by running:
STEP 3 - TESTING IF NGINX IS WORKING
Enter the IP or the DOMAIN of your machine through the browser, if the following page appears, everything is correct.

If this page does not load, you are probably blocked by the firewall (firewall different from the ones I mentioned above)
That's it at first!
Siga as atualizações no tópico principal: "Full infrastructure tutorial to start a TF 1.x server on Ubuntu 22.04" ...
Sources:
It is part of the 1st installation of the LEMP stack on Ubuntu 22.04: NGINX.
STEP 1 - HOW TO INSTALL THE NGINX WEB SERVER
To show web pages to your site visitors, we are going to use Nginx, a high performance web server. We will use the following command to install Nginx:
Code:
sudo apt install nginx
Now check the status of Nginx to see if it is correctly active:
Code:
sudo systemctl status nginx
Something like this should appear:

As you can see in green: active (running), that is, it is active and working.
You can also check the version of nginx installed with the command:
Code:
nginx -v
I got as answer on 14NOV22: nginx version: nginx/1.18.0 (Ubuntu)
STEP 2 - RELEASING THE PORTS ON THE FIREWALL
Here the answer would be quite broad as you should know what kind of firewall you are using.
If you have the UFW firewall enabled, you will need to allow Nginx connections. Nginx registers a few different application profiles in UFW after installation. To check which UFW profiles are available, run:
Code:
sudo ufw app list
The options will appear:

It is recommended that you enable the most restrictive profile which will still allow the traffic you need. In case you haven't already configured SSL (HTTPS) for your server, you just need to allow regular HTTP traffic on port 80 using the command:
Code:
sudo ufw allow 'Nginx HTTP'
Verify the change by running:
Code:
sudo ufw status
STEP 3 - TESTING IF NGINX IS WORKING
Enter the IP or the DOMAIN of your machine through the browser, if the following page appears, everything is correct.

If this page does not load, you are probably blocked by the firewall (firewall different from the ones I mentioned above)
That's it at first!
Siga as atualizações no tópico principal: "Full infrastructure tutorial to start a TF 1.x server on Ubuntu 22.04" ...
Sources:
- Como Instalar Linux, Nginx, MySQL, PHP (pilha LEMP) no Ubuntu 20.04 | DigitalOcean (https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-20-04-pt)
- Como instalar a pilha LEMP no Ubuntu 20.04 Server / Desktop (https://conectandonet.com.br/blog/como-instalar-a-pilha-lemp-no-ubuntu-20-04-server-desktop/)