Stories
Slash Boxes
Comments

SoylentNews is people

posted by janrinok on Tuesday March 11, @07:23PM   Printer-friendly
from the self-hosting-for-the-win dept.

These days most ISPs allow self-hosting to some extent. Programmer Mira Welner has published a 15-step tutorial to getting a working static web site up and running on a Raspberry Pi:

While tutorials abound in regards to getting a basic webserver set up, there is a difference between a functional server and a good usable website. I've been working on getting my personal site set up over the course of the past five years, spending an hour or so every month working on improving the Pi. I never intended for this personal project to become so lengthy or complex, but eventually I ended up with a fairly robust system for running, maintaining, and editing my website. This tutorial will describe what I've learned throughout the process of creating this site in 15 steps, so that you can use it to create and maintain your own sites.

This tutorial assumes that you already know how to use the command line, and that you have some understanding of HTML and CSS. That is about it.

Any always-on system is going to need to draw as little current as possible, and it is hard to beat a Raspberry Pi Zero 2 W which uses under 150 mA. This tutorial stands out as better than most others because of the small details filled in necessary to go from "Hello, World" page to a working, public web site.

Previously:
(2025) AI Haters Build Tarpits to Trap and Trick AI Scrapers That Ignore Robots.Txt
(2025) A Better DIY Seismometer Can Detect Faraway Earthquakes
(2024) How the Raspberry Pi is Transforming Synthesizers
(2023) Free Raspberry Pi 4B in Abandoned Scooters
... and many more.


Original Submission

 
This discussion was created by janrinok (52) for logged-in users only. Log in and try again!
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 2) by Unixnut on Wednesday March 12, @10:36AM

    by Unixnut (5779) on Wednesday March 12, @10:36AM (#1396128)

    Agreed! It is a good set of skills to have :-)

    And once you know how to do it, you can automate future configuration and deployments. For example nowadays I write Ansible for all config management (including home lab), so if I need a web stack I just include that role in the definition for a machine (or group of machines) and it deploys and configures the basics.

    Seems XAMPP really shines in Windows, and in *nix places where you don't have root and/or want your web stack to be isolated from the OS completely, making it easy to migrate/remove/etc... As someone else mentioned on this topic, its very good for development.

    When I want to do web development while on the road without internet, I've resorted to a VM with web stack installed, but that was always a bit clunky and inefficient. If I can install XAMPP in its own user on my laptop and have it host files for testing then I may have a use for it going forward. When I have some time I will dig further into it.

    Starting Score:    1  point
    Karma-Bonus Modifier   +1  

    Total Score:   2