<?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>Forem: Daniel</title>
    <description>The latest articles on Forem by Daniel (@danielops).</description>
    <link>https://forem.com/danielops</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3888618%2F545acbeb-febf-4e57-b507-61fdadf3ceb1.png</url>
      <title>Forem: Daniel</title>
      <link>https://forem.com/danielops</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/danielops"/>
    <language>en</language>
    <item>
      <title>How i Created a Linux VM, SSHed Into it and Installed Apache2 on Azure</title>
      <dc:creator>Daniel</dc:creator>
      <pubDate>Mon, 27 Apr 2026 11:10:32 +0000</pubDate>
      <link>https://forem.com/danielops/how-i-created-a-linux-vm-sshed-into-it-and-installed-apache2-on-azure-5dge</link>
      <guid>https://forem.com/danielops/how-i-created-a-linux-vm-sshed-into-it-and-installed-apache2-on-azure-5dge</guid>
      <description>&lt;p&gt;Introduction&lt;/p&gt;

&lt;p&gt;In this project, I created a Linux virtual machine on Microsoft Azure, connected to it securely using SSH, and installed Apache2 to host a web server.&lt;/p&gt;

&lt;p&gt;This is part of my journey as an aspiring cloud engineer, learning cloud technologies, Linux, and DevOps.&lt;/p&gt;

&lt;p&gt;Step 1: Creating a Virtual Machine on Azure&lt;/p&gt;

&lt;p&gt;I logged into the Azure Portal and created a new virtual machine using Ubuntu as the operating system.&lt;/p&gt;

&lt;p&gt;Key configurations included:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Resource group creation&lt;/li&gt;
&lt;li&gt;Selecting a region&lt;/li&gt;
&lt;li&gt;Choosing a VM size&lt;/li&gt;
&lt;li&gt;Setting up authentication (SSH key)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuwgm06sd2jcv80nm82pk.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuwgm06sd2jcv80nm82pk.PNG" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 2: Connecting to the VM via SSH&lt;/p&gt;

&lt;p&gt;After the VM was successfully created, I connected to it using SSh [Secure shell hosting] from my Gitbash terminal.&lt;/p&gt;

&lt;p&gt;Command used:&lt;br&gt;
ssh username@public-ip-address&lt;/p&gt;

&lt;p&gt;Once connected, I had full access to the Linux environment running on virtual machine as shown below&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff0flxy0kzku8i5cdakkv.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff0flxy0kzku8i5cdakkv.PNG" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 3: Updating the System&lt;/p&gt;

&lt;p&gt;Before installing any software, I updated and upgraded the package list with the commands; &lt;/p&gt;

&lt;p&gt;sudo apt update&lt;br&gt;
&amp;amp;&lt;br&gt;
sudo apt ugrade&lt;/p&gt;

&lt;p&gt;This ensures that all packages are up to date and upgraded.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fifwva8xx6fzuih4n11xt.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fifwva8xx6fzuih4n11xt.PNG" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 4: Installing Apache2&lt;/p&gt;

&lt;p&gt;Next, I installed Apache2 using the following command:&lt;/p&gt;

&lt;p&gt;sudo apt install apache2 -y&lt;br&gt;
The -y flag automatically confirms installation prompts.&lt;/p&gt;

&lt;p&gt;After installation, Apache2 started running on the server.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl4ge7131quhi5i1rejwp.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl4ge7131quhi5i1rejwp.PNG" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 5: Verifying Apache2 Installation&lt;/p&gt;

&lt;p&gt;To confirm Apache2 was working, I opened a browser and visited my VM’s public IP address.&lt;/p&gt;

&lt;p&gt;The default Apache2 welcome page was displayed, confirming a successful installation.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1ejala97vkw2gvw9fgnw.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1ejala97vkw2gvw9fgnw.PNG" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Conclusion&lt;/p&gt;

&lt;p&gt;In this project, I successfully:&lt;/p&gt;

&lt;p&gt;Created a Linux virtual machine on Azure&lt;br&gt;
Connected to it using SSH&lt;br&gt;
Installed and ran Apache2&lt;/p&gt;

&lt;p&gt;This project strengthened my understanding of cloud computing, remote server management, and basic web server deployment.&lt;/p&gt;

&lt;p&gt;I look forward to building more projects as I continue my journey in cloud engineering.&lt;/p&gt;

</description>
      <category>devops</category>
      <category>cloud</category>
      <category>linux</category>
      <category>azure</category>
    </item>
  </channel>
</rss>
