Skip to content

Infrastructure that allows to build and serve custom PHP language modules for Nginx Unit

Notifications You must be signed in to change notification settings

Articus/unit-php

Repository files navigation

Custom PHP language modules for Nginx Unit on Debian

This Debian repository provides packages with custom PHP language modules for Nginx Unit built against PHP packages from deb.sury.org. I tried to make building process as transparent as possible - you can check all infrastructure related files in parent GitHub project. Repository is updated for each Nginx Unit release by manual GitHub Actions workflow run.

Currently, the following versions are supported:

  • Debian 12 Bookworm: PHP 7.4 , PHP 8.0 , PHP 8.1 , PHP 8.2 and PHP 8.3

How to use

  1. Ensure that apt can handle HTTPS Debian repository with GPG signing key:
apt install apt-transport-https ca-certificates gnupg
  1. Install signing key:
wget --output-document=/etc/apt/keyrings/unit-php.gpg https://articus.github.io/unit-php/apt.gpg
chmod 644 /etc/apt/keyrings/unit-php.gpg
  1. Add repository list file:
#For Debian 12
echo "deb [signed-by=/etc/apt/keyrings/unit-php.gpg] https://articus.github.io/unit-php/ bookworm main" > /etc/apt/sources.list.d/unit-php.list
echo "deb-src [signed-by=/etc/apt/keyrings/unit-php.gpg] https://articus.github.io/unit-php/ bookworm main" >> /etc/apt/sources.list.d/unit-php.list
  1. Install corresponding Nginx Unit Debian repository and deb.sury.org Debian repository (or provide another source for similar named Nginx Unit and PHP packages)
  2. Install PHP language module package:
#For PHP 7.4
apt update
apt install unit-php7.4

#For PHP 8.0
apt update
apt install unit-php8.0

#For PHP 8.1
apt update
apt install unit-php8.1

#For PHP 8.2
apt update
apt install unit-php8.2

#For PHP 8.3
apt update
apt install unit-php8.3

Enjoy!

Hopefully, this repository will be useful for someone except me.

If you have any suggestions, advices, questions or fixes feel free to submit issue or pull request.

About

Infrastructure that allows to build and serve custom PHP language modules for Nginx Unit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published