Skip to content

Instantly share code, notes, and snippets.

@andrewpmiller
Last active May 1, 2019 20:14
Show Gist options
  • Save andrewpmiller/772059222797a5860723 to your computer and use it in GitHub Desktop.
Save andrewpmiller/772059222797a5860723 to your computer and use it in GitHub Desktop.
How to install Lighttp on a Rasberry Pi

Lighttpd - Installation and Setup for Raspberry Pi

Installation

sudo apt-get update && apt-get upgrade
sudo apt-get install lighttpd

Permissions

Make the www-data user (and group) the owner of /var/www

sudo chown www-data:www-data /var/www

Change permissions on /var/www

sudo chmod 775 /var/www

Add pi user to the www-data group

sudo usermod -a -G www-data pi

Operations

Restart Server

sudo service lighttpd force-reload

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment