Use debian 13 with php8.4 as base for direct debian installation

This commit is contained in:
Jan Böhmer 2026-07-19 22:07:32 +02:00
parent 9fb69bfc03
commit 3f7dd59dd1
2 changed files with 15 additions and 15 deletions

View file

@ -1,8 +1,8 @@
# Reproduces https://docs.part-db.de/installation/installation_guide-debian.html # Reproduces https://docs.part-db.de/installation/installation_guide-debian.html
# on Debian 12 (bookworm) as closely as possible, for debugging issues reported # on Debian 13 (trixie) as closely as possible, for debugging issues reported
# by users who followed that guide (Apache2 + mod_php, not the project's own # by users who followed that guide (Apache2 + mod_php, not the project's own
# FrankenPHP-based Dockerfile at the repo root). # FrankenPHP-based Dockerfile at the repo root).
FROM debian:12 FROM debian:13
ARG HOST_UID=1000 ARG HOST_UID=1000
ARG HOST_GID=1000 ARG HOST_GID=1000
@ -17,12 +17,12 @@ RUN apt-get update && apt-get upgrade -y && \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# --- PHP and Apache2 (guide: "PHP and Apache2 Setup") --- # --- PHP and Apache2 (guide: "PHP and Apache2 Setup") ---
# Debian 12 ships PHP 8.2 by default, so no extra PHP repo is needed. # Debian 13 ships PHP 8.4 by default, so no extra PHP repo is needed.
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
apache2 php8.2 libapache2-mod-php8.2 \ apache2 php8.4 libapache2-mod-php8.4 \
php8.2-opcache php8.2-curl php8.2-gd php8.2-mbstring \ php8.4-opcache php8.4-curl php8.4-gd php8.4-mbstring \
php8.2-xml php8.2-bcmath php8.2-intl php8.2-zip php8.2-xsl \ php8.4-xml php8.4-bcmath php8.4-intl php8.4-zip php8.4-xsl \
php8.2-sqlite3 php8.2-mysql \ php8.4-sqlite3 php8.4-mysql \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# --- Composer (guide: "Composer Installation") --- # --- Composer (guide: "Composer Installation") ---

View file

@ -1,13 +1,13 @@
--- ---
title: Direct Installation on Debian 12 title: Direct Installation on Debian 13
layout: default layout: default
parent: Installation parent: Installation
nav_order: 4 nav_order: 4
--- ---
# Part-DB installation guide for Debian 12 (Bookworm) # Part-DB installation guide for Debian 13 (Trixie)
This guide shows you how to install Part-DB directly on Debian 12 using apache2 and SQLite. This guide should work with This guide shows you how to install Part-DB directly on Debian 13 using apache2 and SQLite. This guide should work with
recent Ubuntu and other Debian-based distributions with little to no changes. recent Ubuntu and other Debian-based distributions with little to no changes.
Depending on what you want to do, using the prebuilt docker images may be a better choice, as you don't need to install Depending on what you want to do, using the prebuilt docker images may be a better choice, as you don't need to install
this many dependencies. See [here]({% link installation/installation_docker.md %}) for more information on the docker this many dependencies. See [here]({% link installation/installation_docker.md %}) for more information on the docker
@ -45,10 +45,10 @@ compatibility.
Install PHP with required extensions and apache2: Install PHP with required extensions and apache2:
```bash ```bash
sudo apt install apache2 php8.2 libapache2-mod-php8.2 \ sudo apt install apache2 php8.4 libapache2-mod-php8.4 \
php8.2-opcache php8.2-curl php8.2-gd php8.2-mbstring \ php8.4-opcache php8.4-curl php8.4-gd php8.4-mbstring \
php8.2-xml php8.2-bcmath php8.2-intl php8.2-zip php8.2-xsl \ php8.4-xml php8.4-bcmath php8.4-intl php8.4-zip php8.4-xsl \
php8.2-sqlite3 php8.2-mysql php8.4-sqlite3 php8.4-mysql
``` ```
### Install composer ### Install composer
@ -301,7 +301,7 @@ sudo -u www-data php bin/console cache:clear
## MySQL/MariaDB database ## MySQL/MariaDB database
To use a MySQL database, follow the steps from above (except the creation of the database, we will do this later). To use a MySQL database, follow the steps from above (except the creation of the database, we will do this later).
Debian 12 does not ship MySQL in its repositories anymore, so we use the compatible MariaDB instead: Debian does not ship MySQL in its repositories anymore, so we use the compatible MariaDB instead:
1. Install maria-db with: 1. Install maria-db with: