<?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 Chinedu Casmir Aziegbo on Medium]]></title>
        <description><![CDATA[Stories by Chinedu Casmir Aziegbo on Medium]]></description>
        <link>https://medium.com/@ccasmir14?source=rss-a1305dc67cd1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Chinedu Casmir Aziegbo on Medium</title>
            <link>https://medium.com/@ccasmir14?source=rss-a1305dc67cd1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 10:56:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ccasmir14/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[Deploying a PHP Web Application on AWS EC2]]></title>
            <link>https://medium.com/@ccasmir14/deploying-a-php-web-application-on-aws-ec2-aa44ff8b8c93?source=rss-a1305dc67cd1------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa44ff8b8c93</guid>
            <category><![CDATA[database-server]]></category>
            <category><![CDATA[aws-ec2-instance]]></category>
            <category><![CDATA[apache-web-server]]></category>
            <category><![CDATA[cronjob-scheduler]]></category>
            <category><![CDATA[web-server]]></category>
            <dc:creator><![CDATA[Chinedu Casmir Aziegbo]]></dc:creator>
            <pubDate>Fri, 18 Sep 2026 13:48:36 GMT</pubDate>
            <atom:updated>2026-09-18T13:53:21.332Z</atom:updated>
            <content:encoded><![CDATA[<p>My Junior Cloud Engineer Project, This project was designed to to demonstrate how how web application communicates over a network, how servers communicate with databases, how security groups control access, and how automation can simplify server administration. I deployed a sample a simple PHP web application on amazon web services (AWS) using two EC2 instances.</p><p><strong><em>My architecture Involves:</em></strong></p><ul><li><strong>Web Server EC2 — </strong>runs Ubuntu, Apache and PHP</li><li><strong>Database Server EC2</strong> — runs MySQL</li><li><strong>AWS Security Groups</strong> — control inbound network traffic</li><li><strong>Bash script</strong> — automates Web Server configuration</li><li><strong>Cron job</strong> — automatically records server uptime</li><li><strong>PHP application</strong> — connects to MySQL and retrieves student data</li></ul><h3>IP Addressing</h3><p>Here, every EC2 instance has network addresses that allow it to communicate with other systems. The Web Server has a <strong>public IP address</strong>, which allows users on the internet to reach the application.</p><p>The Database Server communicates with the Web Server using its <strong>private IP address</strong>. This distinction is important. The Web Server needs to receive traffic from users, while the Database Server does not need to accept MySQL connections from the public internet.</p><h3>TCP Connection</h3><p>Before the browser can exchange HTTP data with the Web Server, a TCP connection needs to be established. TCP provides reliable communication between the client and server. When the browser connects to the Web Server using HTTP, the connection is made to <strong>TCP port 80</strong>. The browser and server establish a TCP connection before HTTP data is exchanged. The same principle applies between the Web Server and Database Server, except that MySQL uses <strong>TCP port 3306 and then SSH uses port 22.</strong></p><h3><strong>HTTP Request and Response</strong></h3><p>After establishing the TCP connection, the browser sends an HTTP request to the Web Server. Apache receive this request. Apache is the web server software running on my Web Server EC2 instance. Because the requested page is a PHP application, Apache passes the request to PHP for processing. PHP then performs the required application logic. After processing the request, the server sends an HTTP response back to the browser.</p><p><strong>My AWS Architecture</strong></p><p>I used two EC2 instances for this project.</p><h4>Web Server</h4><p>The Web Server runs:</p><ul><li>Ubuntu Linux</li><li>Apache</li><li>PHP</li></ul><p>It is responsible for receiving HTTP requests and running the PHP application.</p><h3>Database Server</h3><p>The Database Server runs:</p><ul><li>Ubuntu Linux</li><li>MySQL</li></ul><p>The database contains student information that is retrieved by the PHP application.</p><h3>Architecture Diagram</h3><p>My architecture can be represented as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SFhZO9rbk0JB1LedSI6QcQ.png" /></figure><h3>Automating Web Server Setup with Bash</h3><p><strong>I</strong>nstead of manually typing all the installation commands every time <strong>I </strong>needed to configure a Web Server, So I created a Bash script called: “setup-web.sh” The script automates the main Web Server setup tasks.</p><p>The script performs the following:</p><ol><li>Updates the package list</li><li>Installs Apache</li><li>Installs PHP</li><li>Installs the PHP MySQL extension</li><li>Starts Apache</li><li>Enables Apache at boot</li><li>Records successful completion in /var/log/setup.log</li></ol><h3>Automating Server Monitoring with Cron Job</h3><p>I also configured a Cron job on the Web Server. Cron is a Linux scheduling system that allows commands to run automatically at specified times. For this project, my Cron job runs every minute and records:</p><ul><li>Date</li><li>Time</li><li>Server uptime</li></ul><p>The Cron entry is: Automating Server Monitoring with Cron</p><p>I also configured a Cron job on the Web Server.</p><p>Cron is a Linux scheduling system that allows commands to run automatically at specified times.</p><p>For this project, my Cron job runs every minute and records:</p><ul><li>Date</li><li>Time</li><li>Server uptime</li></ul><p>The Cron entry is: * * * * * echo “$(date ‘+\%Y-\%m-\%d \%H:\%M:\%S’) — Uptime: $(uptime -p)” &gt;&gt; /var/log/uptime.log and then I also verified the Cron configuration with “sudo crontab -l” then I checked the log using: “sudo cat /var/log/uptime.log</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lJOMz58fmOGUBW8NrdcIog.png" /></figure><p>This produced multiple entries showing when the job ran and the current server uptime.</p><p><strong>Why automation like this matters in production?</strong></p><p>Automation is important in production environments because administrators cannot manually perform every repetitive task.</p><p>Similar automation can be used for:</p><ul><li>Monitoring</li><li>Log collection</li><li>Backups</li><li>Maintenance</li><li>Health checks</li><li>Report generation</li><li>Scheduled cleanup tasks</li></ul><p>Although this project uses a simple uptime log, the concept can be extended to much more advanced monitoring systems.</p><h3>Load Balancer Architecture</h3><p>The current deployment uses one Web Server. If traffic increases significantly, depending on one Web Server could create a limitation. An architecture could introduce an <strong>Application Load Balancer</strong> and a second Web Server. Instead of users connecting directly to one Web Server, The Load Balancer would receive incoming requests and distribute them between the available Web Servers.</p><p>This could provide several benefits, which includes:</p><ul><li>Distribution of incoming traffic</li><li>Better scalability</li><li>Health checking of web servers</li><li>Improved availability</li><li>Easier addition of additional web servers</li></ul><p>For example, if traffic increased, another Web Server could be added behind the Load Balancer without requiring users to know which individual server is handling their request. The Load Balancer was therefore included in my architecture as a <strong>Future Deployment</strong> component.</p><h3>Challenges Faced and Solutions</h3><p>Building the project was not completely straightforward. I encountered several practical issues during the deployment.</p><h3>1. SSH Connection Problems</h3><p>One of the challenges I experienced was losing SSH connectivity to an EC2 instance. At one point, the SSH connection was reset, and later connection attempts resulted in a timeout. I investigated the EC2 instance status and Security Group rules. One important discovery was that SSH access was restricted to a specific IP address. If my public IP changed, the existing Security Group rule would no longer match my current connection. I checked my current IP and updated the SSH rule in the Web Server Security Group accordingly. This taught me that an EC2 instance being in the <strong>Running</strong> state does not automatically mean that SSH access will work. Network configuration and Security Group rules also need to allow the connection.</p><h3>2. Confusing Windows and Linux Terminals</h3><p>Another challenge was accidentally running Linux commands in Windows PowerShell. For example: PS C:\User\user&gt;</p><p>Which suppose to indicate that I am in Windows.</p><p>Whereas: ubuntu@ip-172–31–19–44:~$</p><p>Which suppose to indicate that I am connected to the Ubuntu EC2 server.</p><p>Understanding the difference between the local computer and the remote EC2 environment helped me troubleshoot commands more effectively.</p><h3>3. Finally, I designed a future architecture involving an Application Load Balancer and an additional Web Server. This would allow the application to handle increased traffic by distributing requests across multiple web servers.</h3><p>The project showed me that cloud engineering is not simply about launching servers. It involves understanding <strong>networking, security, automation, troubleshooting, application communication, and scalability</strong>. Most importantly, I now have a clearer understanding of what happens from the moment a user enters a server’s IP address into a browser to the point where the requested data is retrieved from a database and returned to the user.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa44ff8b8c93" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Deployed an Image Using Amazon S3]]></title>
            <link>https://medium.com/@ccasmir14/how-i-deployed-an-image-using-amazon-s3-6a6b3bbcbd19?source=rss-a1305dc67cd1------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a6b3bbcbd19</guid>
            <dc:creator><![CDATA[Chinedu Casmir Aziegbo]]></dc:creator>
            <pubDate>Sun, 30 Aug 2026 18:30:05 GMT</pubDate>
            <atom:updated>2026-08-30T18:30:05.963Z</atom:updated>
            <content:encoded><![CDATA[<p>As part of my AWS Cloud Computing and DevOps learning journey, I completed a hands-on task involving <strong>Amazon Simple Storage Service (Amazon S3)</strong>. The goal was to create an S3 bucket, upload an image, configure public access, and access the image through a web browser.</p><h3>What is Amazon S3?</h3><p>Amazon S3 (Simple Storage Service) is an object storage service provided by AWS. It allows users and organizations to store and retrieve different types of data, including images, videos, documents, backups, and website files.</p><p>S3 stores data inside <strong>buckets</strong>, while individual files stored in a bucket are called <strong>objects</strong>.</p><p>For this practical exercise, I used an S3 bucket to store and publicly access an image.</p><h3>1. Creating the S3 Bucket</h3><p>The first step was to log into the AWS Management Console and navigate to <strong>Amazon S3</strong>.</p><p>I created a new bucket with the following name:</p><p><strong>chinedu-s3-website-2026</strong></p><p>Since S3 bucket names must be globally unique, I chose a name that was unlikely to already exist.</p><p>I used the <strong>US East (N. Virginia) — </strong><strong>us-east-1</strong> AWS Region for the bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RjeWwexuO6exDGtmMyo1IA.png" /></figure><h3>2. Uploading the Image</h3><p>After creating the bucket, I opened it and selected the <strong>Upload</strong> option.</p><p>I selected an image from my computer and uploaded it into the bucket.</p><p>The uploaded object was named:</p><p><strong>my-image.jpg</strong></p><p>After the upload was completed, the image appeared in the list of objects inside my S3 bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x1cj_OtyGUwvKe1W5oI68A.png" /></figure><h3>3. Configuring Public Access</h3><p>By default, AWS S3 provides security settings that prevent public access to bucket contents.</p><p>However, the requirement for this practical exercise was to make the uploaded object publicly accessible.</p><p>I configured the bucket’s permissions to allow public access and added a <strong>bucket policy</strong> that permitted users to retrieve objects from the bucket.</p><p>The policy allowed the s3:GetObject action for objects within my bucket.</p><p>This configuration allowed the image to be accessed without requiring an AWS login.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*RAXo9ca8opyqiarqZGjjSQ.png" /></figure><h3>4. Accessing the Image Through the S3 URL</h3><p>After configuring the permissions, I opened the uploaded image from the S3 console.</p><p>I used the <strong>Open</strong> option to access the object through its web address.</p><p>The image successfully loaded in my web browser, demonstrating that the object was publicly accessible through Amazon S3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WGcNHN9-6NdouJED7HkqCg.png" /></figure><h3>5. What I Learned</h3><p>This practical exercise helped me understand how Amazon S3 works beyond just reading about it.</p><p>I learned how to:</p><ul><li>Create an S3 bucket.</li><li>Upload objects to an S3 bucket.</li><li>Understand the relationship between buckets and objects.</li><li>Configure permissions and public access.</li><li>Create and apply an S3 bucket policy.</li><li>Access an S3 object through a web browser.</li><li>Understand some of the security considerations involved in making cloud resources publicly accessible.</li></ul><p>Most importantly, I learned that <strong>cloud storage is not only about storing files; proper permissions and access control are also very important.</strong></p><h3>Conclusion</h3><p>Deploying an image using Amazon S3 was a useful introduction to AWS cloud storage. The exercise gave me practical experience with creating a bucket, uploading an object, configuring access permissions, and accessing the object over the internet.</p><p>This project has also given me a better foundation for understanding how S3 can be used for <strong>static website hosting, media storage, backups, and other cloud-based applications</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a6b3bbcbd19" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>