mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-07-27 03:31:35 +00:00
Use debian 13 with php8.4 as base for direct debian installation
This commit is contained in:
parent
9fb69bfc03
commit
3f7dd59dd1
2 changed files with 15 additions and 15 deletions
|
|
@ -1,8 +1,8 @@
|
|||
# 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
|
||||
# FrankenPHP-based Dockerfile at the repo root).
|
||||
FROM debian:12
|
||||
FROM debian:13
|
||||
|
||||
ARG HOST_UID=1000
|
||||
ARG HOST_GID=1000
|
||||
|
|
@ -17,12 +17,12 @@ RUN apt-get update && apt-get upgrade -y && \
|
|||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# --- 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 \
|
||||
apache2 php8.2 libapache2-mod-php8.2 \
|
||||
php8.2-opcache php8.2-curl php8.2-gd php8.2-mbstring \
|
||||
php8.2-xml php8.2-bcmath php8.2-intl php8.2-zip php8.2-xsl \
|
||||
php8.2-sqlite3 php8.2-mysql \
|
||||
apache2 php8.4 libapache2-mod-php8.4 \
|
||||
php8.4-opcache php8.4-curl php8.4-gd php8.4-mbstring \
|
||||
php8.4-xml php8.4-bcmath php8.4-intl php8.4-zip php8.4-xsl \
|
||||
php8.4-sqlite3 php8.4-mysql \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# --- Composer (guide: "Composer Installation") ---
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
---
|
||||
title: Direct Installation on Debian 12
|
||||
title: Direct Installation on Debian 13
|
||||
layout: default
|
||||
parent: Installation
|
||||
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.
|
||||
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
|
||||
|
|
@ -45,10 +45,10 @@ compatibility.
|
|||
Install PHP with required extensions and apache2:
|
||||
|
||||
```bash
|
||||
sudo apt install apache2 php8.2 libapache2-mod-php8.2 \
|
||||
php8.2-opcache php8.2-curl php8.2-gd php8.2-mbstring \
|
||||
php8.2-xml php8.2-bcmath php8.2-intl php8.2-zip php8.2-xsl \
|
||||
php8.2-sqlite3 php8.2-mysql
|
||||
sudo apt install apache2 php8.4 libapache2-mod-php8.4 \
|
||||
php8.4-opcache php8.4-curl php8.4-gd php8.4-mbstring \
|
||||
php8.4-xml php8.4-bcmath php8.4-intl php8.4-zip php8.4-xsl \
|
||||
php8.4-sqlite3 php8.4-mysql
|
||||
```
|
||||
|
||||
### Install composer
|
||||
|
|
@ -301,7 +301,7 @@ sudo -u www-data php bin/console cache:clear
|
|||
## MySQL/MariaDB database
|
||||
|
||||
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:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue