Tuesday, 13 January 2026

Raspberry Pi Web Server

I need a local web server for some students to try building some of their own websites on. The college network is well locked down, so I'm building a local server which should work inside the college network.

I've dug out one of my very old Model A Raspberry Pi machines. It has only a 4gb SD card, so I need to install a very minimal 32-bit OS on it.



Following the instructions at https://www.raspberrypi.com/documentation/computers/getting-started.html, I have installed Raspberry Pi Imager to my PC and run that, choosing to install the legacy 32-bit command line version.

Having set up the SD card, I have booted the Raspberry Pi and used ifconfig to see the IP address of the device, which on my network is 192.168.1.198.

This R-Pi is too old for the new RPi Connect software to work. But I should be able to open a command line on my PC and use SSH to connect.

First, I need to follow the instructions at https://www.raspberrypi.com/documentation/computers/remote-access.html#enable-the-ssh-server to enable the SSH server.

Next, in my command prompt, I type ssh <username>@192.168.1.198. That allows me to connect to the Pi through the terminal.

Now, in the terminal,

sudo apt-get update

Now change to the etc folder - cd /etc

Install Apache

and use Nano to edit the name of the server - in this case, I'm following the instructions at https://community.element14.com/products/raspberry-pi/raspberrypi_projects/b/blog/posts/raspberry-pi-as-a-lamp-server, and the host is named lamppi

sudo nano hostname

Add a localhost entry for my IP address (e.g. 192.168.1.198 localhost)

Add an entry for my chosen server (e.g. 192.168.1.198   lamppi)


Now I restart the Apache web server with ...

sudo service apache2 restart

Now on my PC web browser, I go to 192.168.1.198, and the following displays.




CH32V203 Big Round Button

Having successfully uploaded the Blink code to the  CH32V203 , the next task is to try the HID button demo. The circuit I’m using has two bu...