/php-lighttpd

PHP-Lighttpd is a Dockerfile to build a Lighttpd image with PHP-FPM and FastCGI.

Primary LanguageDockerfileGNU General Public License v3.0GPL-3.0

PHP-Lighttpd

GitHub Build Status


About

PHP-Lighttpd is a Dockerfile to build a Lighttpd image with PHP-FPM and FastCGI.

Installation

Use the pre-built package

Prebuilt images are built weekly and are available on Docker Hub at siebsie23/php-lighttpd

The images are built on multiple distros which can be found in the table below. All images are built to support the amd64 and arm64 architectures.

Available tags:

PHP Version Tags
8.3 8.3-alpine
8.3-bullseye
8.2 8.2-alpine
8.2-bullseye
8.1 8.1-alpine
8.1-bullseye
8.0 8.0-alpine
8.0-bullseye

Build from Source

Clone the git repository and build the image with make build PHP_VERSION="phpversion" DISTRO="distro" phpversion being a valid php-fpm docker image version and distro being one of alpine or bullseye.

Configuration

Quick Start

  • The quickest way to get started is by using a prebuilt image i.e. siebsie23/php-lighttpd:8.3-alpine and linking the /var/www/ directory to a host directory containing your HTML or PHP files.
  • Map persistent storage for access to configuration and data files for backup.

Persistent Storage

The following directories are used for configuration and can be mapped for persistent storage.

Directory Description
/var/www/ Directory to serve your static or PHP files.

Base Images used

This image relies on the official PHP-fpm image. While building either one of the following is used based on the requested distribution:

  • php:*-fpm-alpine
  • php:*-fpm-bullseye

Networking

Port Description
80 Default port serving your web files

Support

Bugfixes

  • Please, submit a Bug Report if something isn't working as expected. I'll do my best to issue a fix in short order.

License

GNU GPLv3. See LICENSE for more details.