<\/span><\/h2>\r\n\r\n\r\n\r\nIn this step, we will install a web server. You can choose between Apache or Nginx because both are fast, secure, and reliable. In this tutorial, we will use Apache which is the most popular among web servers.<\/p>\r\n\r\n\r\n\r\n
To install Apache web server, run the following command on your server:<\/p>\r\n\r\n\r\n\r\n
apt install apache2<\/pre>\r\n\r\n\r\n\r\nAfter installing Apache2, use the command below to start the Apache service:<\/p>\r\n\r\n\r\n\r\n
systemctl start apache2<\/pre>\r\n\r\n\r\n\r\nAlso, you can enable Apache server to always startup when the server boots up:<\/p>\r\n\r\n\r\n\r\n
systemctl enable apache2<\/pre>\r\n\r\n\r\n\r\nYou can always check the status of the Apache web service with this command:<\/p>\r\n\r\n\r\n\r\n
systemctl status apache2<\/pre>\r\n\r\n\r\n\r\nYou can also open your favorite browser and enter your IP address (for example http:\/\/your_server_ip_address), and check whether Apache is running on your server.
If you see the Apache’s default welcome page it means that the Apache web server is successfully installed and running.<\/p>\r\n\r\n\r\n\r\n