You don't have access to this class

Keep learning! Join and start boosting your career

Aprovecha el precio especial y haz tu profesión a prueba de IA

Antes: $249

Currency
$209
Suscríbete

Termina en:

0 Días
11 Hrs
59 Min
9 Seg
Curso de Digital Ocean

Curso de Digital Ocean

Santiago Bernal

Santiago Bernal

Instalación de Nginx en un Droplet

19/26
Resources

How to install Wordpress with a secure architecture?

Whether you are planning to improve your current technical skills or start a new project in a more secure and efficient way, installing Wordpress on a server with a proper architecture is an excellent starting point. By following a structure where your web server runs PHP and the other one manages your data in isolation, we significantly increase the security of web applications. We will guide you through the initial steps to set up an environment with Nginx and other essential components.

How to create a new droplet for your server?

First, let's start by creating a new droplet, which will be the core of our web server:

  1. Log in to your control panel.
  2. Select the corresponding project (in this case, named "Platzi").
  3. Create a new droplet with the following configuration:
    • Distribution: Ubuntu 18.04 64 bits
    • Machine: Select the smallest one for this example
    • Datacenter: NY1
    • Private Networking: Enabled

This last step of private networking automates the configuration of the network interface, making the process simpler and more secure.

How to name and label the server?

  1. Add your pre-configured SSH key for security.
  2. Name the server as "web server" to identify its primary function.
  3. Add labels such as "web", since this server will host web applications.

This facilitates the organization and administration of the server, helping us to quickly identify its purpose.

How to access and initialize the newly created server?

Once you have created your droplet, it is time to access it:

  1. Copy the IP address of the created server.

  2. Use the console to log in with the root user:

    ssh root@<IP_address>

When logging in, it will ask you if you trust the security key; answer yes to access the server.

How to update the repositories and server software?

It is crucial to start by updating the repositories and software on our server so that everything works with the latest versions:

  1. Run a repository update:

    apt-get update
  2. Then, update the existing applications:

    apt-get upgrade

This update will ensure that your server is ready for new installations and configurations.

How to install Nginx on your server?

Nginx is a powerful web server that will handle HTTP requests:

  1. Install Nginx with the following command:

    apt-get install nginx
  2. Confirm the installation when prompted and wait for the process to finish.

How to verify that Nginx is running correctly?

Once installed, check the status of Nginx to make sure it is running:

  1. Check with the following command:

    systemctl status nginx
  2. Next, open a browser, enter the server's IP and you should see a welcome message confirming that Nginx is running successfully.

These initial steps lead to creating a solid foundation for your web server. I encourage you to continue to learn and expand your server administration skills. Properly configuring your environment is the first step towards secure and efficient management of your web projects.

Contributions 6

Questions 2

Sort by:

Want to see more contributions, questions and answers from the community?

Todo bien, pero creo que deberías darle uso a los droplets ya creados y no crear nuevos que no seria una practica correcta.

Yo estoy teniendo problemas con nginx , tengo un error 504, ya he seguido millones de guías para solucionarlo y nada, ya no se que más configurar.

Hola, en este caso, a la fecha no me apareció la opción de “Private networking”, ¿alguna otra opción similar?

Para poder tener un servidor para hostear sitios es necesario tener 3 dropplet montados ?

apt-get upgrade puede actualizar todo el sistema no lo hagan.

cool