<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Praneetsubramani on Medium]]></title>
        <description><![CDATA[Stories by Praneetsubramani on Medium]]></description>
        <link>https://medium.com/@praneetsubramani10?source=rss-9004ed3dbc13------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*hlRn3H3LKy-Lx2Gh</url>
            <title>Stories by Praneetsubramani on Medium</title>
            <link>https://medium.com/@praneetsubramani10?source=rss-9004ed3dbc13------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 20:52:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@praneetsubramani10/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Hosting a Free HTML Website on AWS EC2 Using Ubuntu, Apache2, PuTTY and WinSCP]]></title>
            <link>https://medium.com/@praneetsubramani10/hosting-a-free-html-website-on-aws-ec2-using-ubuntu-apache2-putty-and-winscp-c1b59aa175ed?source=rss-9004ed3dbc13------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1b59aa175ed</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[amazon-ec2]]></category>
            <category><![CDATA[web-hosting]]></category>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[Praneetsubramani]]></dc:creator>
            <pubDate>Sat, 05 Dec 2026 18:24:48 GMT</pubDate>
            <atom:updated>2026-12-05T18:29:26.126Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Cloud computing plays an important role in modern technology. Amazon Web Services (AWS) provides various cloud services that help users create and manage virtual servers.</p><p>In this project, I hosted a free HTML website template on an AWS EC2 Ubuntu virtual server. I learned how to launch an EC2 instance, connect to an Ubuntu server, install Apache2, upload website files using WinSCP, and access the hosted website through a public IP address.</p><h3>What is AWS EC2?</h3><p>Amazon Elastic Compute Cloud (EC2) is a cloud service provided by AWS. It allows users to create and manage virtual machines called instances.</p><p>EC2 helps developers run applications, host websites, and store data without purchasing physical servers.</p><h3>Steps to Launch an EC2 Instance</h3><p><strong>1. Sign in to AWS Console</strong></p><p>First, open the AWS Management Console and sign in using your AWS account credentials.</p><p><strong>2. Open EC2 Service</strong></p><p>Search for EC2 in the AWS search bar and select the EC2 service.</p><p><strong>3. Enter Instance Details</strong></p><p>Provide a suitable name for the instance and select an operating system. In this project, Ubuntu Server is selected as the operating system.</p><p><strong>4. Select Instance Type</strong></p><p>Choose the required instance type based on the project requirements.</p><p><strong>5. Create or Select a Key Pair</strong></p><p>A key pair is used for secure access to the EC2 instance. Create or select a key pair and keep the private key safe.</p><p><strong>6. Configure Network Settings</strong></p><p>Configure the network settings and security group to allow the required connections.</p><p>The following inbound rules are required:</p><ul><li>SSH — Port 22</li><li>HTTP — Port 80</li></ul><p><strong>7. Configure Storage</strong></p><p>Select the required storage size for the EC2 instance.</p><p><strong>8. Launch the Instance</strong></p><p>Review all the selected configurations and click “Launch Instance”. After successful launching, the instance becomes available in the EC2 dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R82lmNHdQffhEMku44Sbsg.png" /></figure><h3>Connecting to AWS EC2 Using PuTTY</h3><p>PuTTY is a free SSH client used to connect securely to a remote Linux server. In this project, PuTTY is used to access the Ubuntu EC2 instance through its public IP address.</p><p><strong>Steps to Connect Using PuTTY:</strong></p><ol><li>Open the PuTTY application on your computer.</li><li>Enter the Public IPv4 address of your EC2 instance in the Host Name field.</li><li>Set the connection type to SSH.</li><li>Ensure that the port number is 22.</li><li>Navigate to Connection → SSH → Auth → Credentials.</li><li>Browse and select the private key file in .ppk format.</li><li>Return to the Session section and click Open.</li><li>If a security alert appears, verify the server and continue.</li><li>Enter the login username as ubuntu.</li></ol><p>After successful authentication, the Ubuntu terminal will open.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*Eh4LgJ9FUqpMH6fwodCVXQ.png" /></figure><h3>Updating the Ubuntu Server</h3><p>After connecting to the Ubuntu server using PuTTY, the next step is to update the server. Updating ensures that the system has the latest package information and available software updates.</p><p><strong>1. Open PuTTY</strong></p><p>Open PuTTY and connect to your EC2 instance using its public IP address and SSH key.</p><p><strong>2. Update Package Information</strong></p><p>Enter the following command:</p><pre>sudo apt update</pre><p>This command checks for the latest available package information from Ubuntu repositories.</p><p><strong>3. Upgrade Installed Packages</strong></p><p>Enter the following command:</p><pre>sudo apt upgrade -y</pre><p>This command upgrades the installed packages to their available newer versions.</p><p>Allow the process to finish before continuing.</p><h3>Installing Apache2 on Ubuntu</h3><p>Apache2 is a web server software used to host websites and web applications. It receives requests from web browsers and displays the website content.</p><p><strong>Steps to Install Apache2:</strong></p><p><strong>1. Update Package Information</strong></p><p>First, update the Ubuntu package information:</p><pre>sudo apt update</pre><p><strong>2. Install Apache2</strong></p><p>Enter the following command:</p><pre>sudo apt install apache2 -y</pre><p>This command downloads and installs the Apache2 web server.</p><p><strong>3. Start Apache2 Service</strong></p><p>Start the Apache2 service using:</p><pre>sudo systemctl start apache2</pre><p><strong>4. Enable Apache2</strong></p><p>To start Apache2 automatically when the server boots, enter:</p><pre>sudo systemctl enable apache2</pre><p><strong>5. Check Apache2 Status</strong></p><p>Use the following command:</p><pre>sudo systemctl status apache2</pre><p>If the service displays “active (running)”, Apache2 has been installed and started successfully.</p><p><strong>6. Test Apache2 in a Browser</strong></p><p>Open Google Chrome and enter the EC2 public IP address:</p><p><a href="http://your-ec2-public-ip/">http://YOUR-EC2-PUBLIC-IP</a></p><p>The Apache2 default page should appear, confirming that the web server is responding successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*87lqRaAAkbhaWs6jps0zlw.png" /></figure><h3>Configuring Website Folder Permissions</h3><p>Apache2 uses the following directory to store website files:</p><p>/var/www/html</p><p>To upload and manage website files using the Ubuntu user, the folder permissions need to be configured.</p><p><strong>1. Change Folder Ownership</strong></p><p>Enter the following command:</p><pre>sudo chown -R ubuntu:www-data /var/www/html</pre><p>This command changes the ownership of the website directory.</p><p><strong>2. Configure Folder Permissions</strong></p><p>Enter:</p><pre>sudo find /var/www/html -type d -exec chmod 755 {} \;</pre><p>This command provides the required directory permissions.</p><p><strong>3. Configure File Permissions</strong></p><p>Enter:</p><pre>sudo find /var/www/html -type f -exec chmod 644 {} \;</pre><p>This command provides the required file permissions.</p><h3>Connecting to the Server Using WinSCP</h3><p>WinSCP is a file transfer application that supports secure file transfer between a local computer and a remote server.</p><p>It is used in this project to upload the downloaded HTML website template to the Ubuntu server.</p><p><strong>Steps to Connect Using WinSCP:</strong></p><ol><li>Open WinSCP on your computer.</li><li>Select SFTP as the file transfer protocol.</li><li>Enter the public IP address of the EC2 instance.</li><li>Set the port number to 22.</li><li>Enter the username as ubuntu.</li><li>Select the appropriate private key file in .ppk format.</li><li>Click Login to establish the connection.</li></ol><p>After connecting, the local computer files appear on the left side and the remote Ubuntu server files appear on the right side.</p><p>Open the following directory on the remote server:</p><p>/var/www/html</p><h3>Downloading and Uploading the Free HTML Template</h3><p>For this project, I downloaded the free <strong>Massively HTML template from HTML5 UP</strong>.</p><p>The template provides a ready-made website design with HTML pages, CSS styles, JavaScript files and images.</p><p><strong>Steps to Upload the Template:</strong></p><p><strong>1. Download the Template</strong></p><p>Open the HTML5 UP website and download the Massively HTML template.</p><p><strong>2. Extract the ZIP File</strong></p><p>Extract the downloaded ZIP file on your Windows computer.</p><p><strong>3. Open the Extracted Folder</strong></p><p>Open the extracted template folder and check its contents.</p><p>The template contains the following files and folders:</p><ul><li>index.html</li><li>generic.html</li><li>elements.html</li><li>assets folder</li><li>images folder</li><li>LICENSE.txt</li><li>README.txt</li></ul><p><strong>4. Upload the Template Using WinSCP</strong></p><p>Open the extracted template folder on the left side of WinSCP.</p><p>Select all the template files and folders and drag them to the remote server directory:</p><p>/var/www/html</p><p><strong>5. Verify the Uploaded Files</strong></p><p>Check that the HTML files, assets folder and images folder are directly inside /var/www/html.</p><p>The index.html file must be placed directly inside the website directory so that Apache2 can display the correct homepage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qChcnbFjAuAx_Id6kWqBkw.png" /></figure><h3>Restarting Apache2</h3><p>After uploading the website template, restart the Apache2 service to ensure that the web server is running correctly.</p><p>Enter the following command in PuTTY:</p><pre>sudo systemctl restart apache2</pre><p>To verify the uploaded website files, use:</p><pre>ls -la /var/www/html</pre><p>This command displays the files and folders available in the website directory.</p><h3>Accessing the Hosted Website Through Public IP</h3><p>Finally, open Google Chrome and enter the public IPv4 address of the EC2 instance.</p><p>Use the following format:</p><p><a href="http://your-ec2-public-ip/">http://YOUR-EC2-PUBLIC-IP</a></p><p>The Apache2 web server processes the request and displays the uploaded Massively HTML website template.</p><p>The website can now be accessed through the public IP address of the EC2 instance, provided the server is running and HTTP access is allowed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kq9V7vbd9yM5vvyyT3Nd-Q.png" /></figure><h3>Conclusion</h3><p>Launching and hosting a website using AWS EC2 is a useful way to understand cloud computing and web hosting.</p><p>Through this project, I learned how to create an EC2 Ubuntu instance, connect to the server using PuTTY, update Ubuntu packages, install Apache2, configure website folder permissions and upload a free HTML template using WinSCP.</p><p>Finally, I successfully hosted the Massively HTML template and accessed the website through the EC2 public IP address.</p><p>This project helped me understand the basic process of hosting a website on a cloud server.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1b59aa175ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>