Creating an AWS EC2 instance
I created an account on AWS and spun up an EC2 (Elastic Compute Cloud) instance. I had to try three times. The first attempt was the most tedious, as there was a lot to read, especially about the free-tier services. After some reading, watching a few videos, and reading again, I managed to get things going. I chose Red Hat because I had never tried it before, but I was totally unable to connect to it—not even from the browser. I have no idea why. Later, I stopped the instance and created an Ubuntu instance, which I managed to connect to via the browser, but not through SSH. After exploring around, I found out that the private key extension was .ppk when trying to connect via PuTTY. Having some previous knowledge of Ubuntu (Linux), it wasn’t too difficult to navigate and run basic commands to get acquainted with the system environment.
Later, I decided to host a website on the instance and chose Lighttpd for its lightweight features. I had an old website about myself, created in 2020 using only HTML and CSS, which was also available in my Git repository. I cloned it into the designated directory "/var/www/html/", allowed port 80 in UFW, and tried to connect but failed. I checked everything, tried using both the public IP and public DNS, but no result. After some more reading, I found out about the command “lighty-enable-mod fastcgi-php-fpm,” but the error persisted. I was tired at that point and decided to remove Lighttpd and switch to Nginx or Apache. I went to sleep.
The next day, I tried to fix the issue but couldn’t focus, so I thought of starting over. This time, I added an additional 15GB of disk space and chose Debian. My web hosting setup is still in progress...
Subscribe to my newsletter
Read articles from Faizan Khan directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Faizan Khan
Faizan Khan
With a background in Game Art and 3D Graphics, I’m now fully focused on pursuing a career as a Systems Engineer. My passion lies in understanding how systems function at a low level and troubleshooting complex issues, whether they are hardware- or software-related. I have hands-on experience with networking, operating systems, and various technologies, from setting up routers to working with operating systems. Currently, I’m deepening my knowledge of system architecture, Arduino, and networking principles, always eager to learn more and grow in this evolving field.