Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 16, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 16, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 16, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 16, 2025

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025

      Minecraft licensing robbed us of this controversial NFL schedule release video

      May 16, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      The power of generators

      May 16, 2025
      Recent

      The power of generators

      May 16, 2025

      Simplify Factory Associations with Laravel’s UseFactory Attribute

      May 16, 2025

      This Week in Laravel: React Native, PhpStorm Junie, and more

      May 16, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025
      Recent

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»How to Host a Website on AWS EC2 Using a CSS Template

    How to Host a Website on AWS EC2 Using a CSS Template

    November 8, 2024

    Are you ready to take your web hosting skills to the next level by using a CSS template? Hosting a professional looking website doesn’t have to be complicated, and with AWS EC2, you can have your website live in no time!

    In this guide, I’ll show you how to host a website using a pre-designed template from CSS templates directly on your EC2 instance.

    Before we dive into this guide, make sure you’ve gone through my previous blog on how to launch and connect to an EC2 instance. If you haven’t set up an EC2 instance yet, head over to that post first to get your instance up and running. Once that’s done, you’re all set to proceed!

    Step 1: Download the “Built Better” Template

    For this tutorial, we’ll use the Built Better template, which is free and easy to set up.

    Head over to this link and download the template.

    Right-click on the download button and select “Copy clean link”. We’ll use this link to download the template directly into your EC2 instance.

    Step 2: Download the Template Directly to Your EC2 Instance

    Now that you have the link to the template, let’s download it straight to your EC2 instance using wget.

    Log in to your EC2 instance via SSH or MobaXterm (as covered in my previous blog) and navigate to the /var/www/html directory where your website files will be stored:

    cd /var/www/html
    

    Use the wget command followed by the copied link to download the “Built Better” template directly into your EC2 instance:

    sudo wget https://www.free-css.com/assets/files/free-css-templates/download/page284/built-better.zip
    

    Note: After downloading, it’s a good idea to check the file name to ensure it matches the file used in the subsequent commands. You can do this by running the ls command:

    ls
    

    Step 3: Unzip the Template Files

    Now that the template has been downloaded, it’s time to extract it. Install the unzip utility if it’s not already installed:

    sudo dnf install unzip -y
    

    Then unzip the template:

    sudo unzip built-better.zip -d /var/www/html/
    

    After unzipping, make sure to check the folder name where the files were extracted from. You can do this by listing the contents of the /var/www/html directory:

    ls /var/www/html/
    

    In this case, the unzipped contents are located inside a folder named html. This folder contains all the template files. If the folder name is different in your case, adjust the following steps accordingly.

    First, move the files from the html folder to the root /var/www/html/ directory:

    sudo mv /var/www/html/html/* /var/www/html/
    

    Then remove the unnecessary folder:

    sudo rm -r /var/www/html/html
    

    Lastly, remove the ZIP file:

    sudo rm built-better.zip
    

    Step 4: Set Up the Web Server to Host Your Template

    If you haven’t already, make sure your Apache HTTPD web server is installed and running. You can follow these steps to ensure your server is ready:

    Install Apache (if not installed):

    sudo yum install httpd -y
    

    Start the Apache service:

    sudo systemctl start httpd
    

    Enable Apache to start on boot:

    sudo systemctl enable httpd
    

    Now your web server should be up and running, ready to serve your template.

    Step 5: Test Your Website

    Now for the exciting part seeing your site live! Open a browser and navigate to your EC2 instance’s public IP address. You should now see the Built Better template live and ready to go.

    Here’s how to check:

    • Find your EC2 instance’s public IP from the AWS EC2 dashboard.

    • Enter the IP in your browser, like so: http://your-ec2-public-ip

    • Your website should now be live with the Built Better template! 🎉

    Wrapping Up

    Congratulations! You’ve successfully hosted a professional-looking website using the Built Better CSS template on your EC2 instance.

    With just a few steps, you’ve moved from launching an EC2 instance to hosting a fully styled website, all using the AWS powerful cloud infrastructure.

    You can follow me on

    • Twitter

    • LinkedIn

    Source: freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleThis wireless microphone can handle rainfall and up to 300 meters of range – and I’m genuinely excited
    Next Article Is Your LLM Agent Enterprise-Ready? Salesforce AI Research Introduces CRMArena: A Novel AI Benchmark Designed to Evaluate AI Agents on Realistic Tasks Grounded on Professional Work Environments

    Related Posts

    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 17, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-48187 – RAGFlow Authentication Bypass

    May 17, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Rilasciato Proxmox VE 8.4: Un aggiornamento significativo per la virtualizzazione open source

    Rilasciato Proxmox VE 8.4: Un aggiornamento significativo per la virtualizzazione open source

    Linux

    Private Federated Learning In Real World Application – A Case Study

    Machine Learning

    5 simple ways to start taking control of your online privacy today

    News & Updates

    CVE-2025-27087 – Cray Operating System (COS) Kernel Local Denial of Service (DoS)

    Common Vulnerabilities and Exposures (CVEs)

    Highlights

    Artificial Intelligence

    The Forgotten Plague

    April 4, 2024

    Bookspotz Audio Dreamz AudioDreamz EcoSystem: The Future Awaits For You Inside! Your gateway to speak…

    INTERPOL Authorities Recover Over $40 Million from International Email Scam

    August 7, 2024

    Don’t let the Elden Ring DLC stop you from purchasing one of the best Xbox Soulslikes now on sale at Best Buy

    June 14, 2024

    How to Make WordPress Maintenance Clear to Clients

    July 11, 2024
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.