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: 4, Informative) by canopic jug on Wednesday March 12, @04:20AM (1 child)

    by canopic jug (3949) Subscriber Badge on Wednesday March 12, @04:20AM (#1396106) Journal

    XAMPP has its place. It is a good crutch for those that, for whatever reasons, good or bad, are on Windows instead of having upgraded to GNU/Linux. XAMPP has its place, just not on either the GNU/Linux distros or, for that matter, any non-GNU Linux distros either.

    XAMPP actually gets in the way on regular GNU/Linux systems like the Debian-based Raspberry Pi OS mentioned in the fine article. The gist is that it is a non-standard approach and puts things in the wrong places, which means that documentation and forums are unable to help. There are other drawbacks, too. For basic LAMP (Linux Apache MySQL and Perl/Python/PHP) your best bet by far is to stick with the packages provided by the base system and its repository. So if you are using Debian or derivatives, use APT. If you are using Arch, use pacman. And so on.

    --
    Money is not free speech. Elections should not be auctions.
    Starting Score:    1  point
    Moderation   +2  
       Informative=2, Total=2
    Extra 'Informative' Modifier   0  
    Karma-Bonus Modifier   +1  

    Total Score:   4  
  • (Score: 0) by Anonymous Coward on Wednesday March 12, @04:36AM

    by Anonymous Coward on Wednesday March 12, @04:36AM (#1396110)

    Good for dev, not good for production.