<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Hussein Lawal</title>
    <description>The latest articles on DEV Community by Hussein Lawal (@hussein_lawal_ffc2e2f5e72).</description>
    <link>https://dev.to/hussein_lawal_ffc2e2f5e72</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2791523%2Fa49ee148-3878-429c-86f8-d7452a9fe429.png</url>
      <title>DEV Community: Hussein Lawal</title>
      <link>https://dev.to/hussein_lawal_ffc2e2f5e72</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hussein_lawal_ffc2e2f5e72"/>
    <language>en</language>
    <item>
      <title>Configuring an NGINX web server on a fresh Ubuntu Server. HNG PROJECT-Devops Stage 0</title>
      <dc:creator>Hussein Lawal</dc:creator>
      <pubDate>Sun, 02 Feb 2025 19:06:27 +0000</pubDate>
      <link>https://dev.to/hussein_lawal_ffc2e2f5e72/configuring-an-nginx-web-server-on-a-fresh-ubuntu-server-hng-project-devops-stage-0-190b</link>
      <guid>https://dev.to/hussein_lawal_ffc2e2f5e72/configuring-an-nginx-web-server-on-a-fresh-ubuntu-server-hng-project-devops-stage-0-190b</guid>
      <description>&lt;p&gt;&lt;strong&gt;INTRODUCTION:&lt;/strong&gt;&lt;br&gt;
The task for the stage 0 requires the configuration and installation of nginx server on an fresh ubuntu server. &lt;br&gt;
The aim of this task is to establish my ability to setup a functional webserver. &lt;/p&gt;

&lt;p&gt;Project Summary:&lt;br&gt;
&lt;strong&gt;STEP 1&lt;/strong&gt;&lt;br&gt;
Lunch an EC2 instance&lt;br&gt;
Name: nginx-server&lt;br&gt;
AMI: Ubuntu server 24.04&lt;br&gt;
Keypair: Mykey.pem&lt;br&gt;
Security Group: Inbound Rule: All traffic access (Port 22 and Port 80), &lt;br&gt;
                Outbound Rule: All traffic access &lt;br&gt;
Instance type: t2 micro(Free eligibility)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;STEP 2&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Connect to the EC2 Instance from the terminal. &lt;/p&gt;

&lt;p&gt;Locate and Change permissions of the key file: chmod 400 keypair&lt;br&gt;
connect through ssh: ssh keypair ubuntu@ip-add&lt;br&gt;
update and upgrade package list: sudo apt update &amp;amp;&amp;amp; upgrade&lt;br&gt;
install nginx: sudo apt install nginx -y&lt;br&gt;
start and enable nginx: sudo systemctl start nginx/enable nginx&lt;br&gt;
check status of nginx to ensure it is running: sudo systemctl status nginx&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;STEP 3&lt;/strong&gt;&lt;br&gt;
Configure html file. &lt;/p&gt;

&lt;p&gt;run sudo vim /var/www/html/index.html &lt;br&gt;
click on 'i' to get into insert mode. input the text file . click esc and save and exit with :wq&lt;br&gt;
restart nginx: sudo systemctl restart nginx&lt;br&gt;
verify the setup: sudo systemctl status nginx&lt;br&gt;
reverify on the web server: &lt;a href="http://your" rel="noopener noreferrer"&gt;http://your&lt;/a&gt; server-ip&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CHALLANGES FACED&lt;/strong&gt; &lt;br&gt;
Accessing my webpage was a herculin task and my server was constantly timed out upon connecting to the instance on the terminal. Had to edit my security group to allow port 80 (http)and allow port 22 (ssh). &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;IMPORTANCE OF THE TASK&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;To build the core competences of Devops foundation training&lt;/li&gt;
&lt;li&gt;To Develop strong technical and documentation skills &lt;/li&gt;
&lt;li&gt;To gain understanding of web hosting and deployment, firewall and security basics &lt;/li&gt;
&lt;li&gt;To also improve Linux and command line proficiency. &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;CONCLUSION&lt;/strong&gt;&lt;br&gt;
This project strengthens my fundamental DevOps skills, serving as a crucial learning milestone. It instills in me a solid foundation for cloud deployments, automation, and infrastructure management—key competencies needed in the DevOps learning journey. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;REFERENCES&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://hng.tech/hire/devops-engineers" rel="noopener noreferrer"&gt;Devops Engineers&lt;/a&gt;-&lt;br&gt;
&lt;a href="https://hng.tech/hire/aws-solutions-architects" rel="noopener noreferrer"&gt;AWS Solutions Architects &lt;/a&gt;- &lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
