Hallo,
ich versuche immer mal wieder zwischendrin einen Lammp/Xammp Stack auf meinen NAS Systemen
2800er und 4800+ auf zu setzen.
Doch egal was ich anstelle oder welche Beschreibung ich verwende kommt entweder 403 Forbidden oder IT WORKS.
Fehler bei 403 ist folgender
Code
Permission denied: [client 192.168.3.43:37500] AH00529: /var/www/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
In beiden Fällen bekomme ich keinen Zugriff auf das www Verzeichnis.
die yaml sieht folgendermaßen aus. Die Passwörter nicht beachten, die werden bei Erfolg geändert.
Code
services:
db:
image: mariadb:11.3.2-jammy
restart: unless-stopped
environment:
MARIADB_ROOT_PASSWORD: root
MARIADB_DATABASE: root_db
MARIADB_USER: user
MARIADB_PASSWORD: user
TZ: Europe/Berlin
ports:
- "3306:3306"
expose:
- '3306'
volumes:
- ./data:/var/lib/mysql
phpmyadmin:
image: phpmyadmin:5.2.1-apache
restart: unless-stopped
depends_on:
- db
environment:
PMA_USER: root
PMA_PASSWORD: root
MYSQL_ROOT_PASSWORD: root
ports:
- "88:80"
expose:
- "88"
php-app:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./www:/var/www/html
depends_on:
- db
- phpmyadmin
ports:
- "3003:80"
expose:
- "3003"
Display More
Die Dockerfile
Code
# Using the PHP 8.2 as Apache base image
FROM php:8.2-apache
# Enable the Apache module rewrite
RUN a2enmod rewrite
# Install PHP extensions for MySQL database connection
RUN docker-php-ext-install mysqli pdo_mysql pdo
RUN chown -R www-data:www-data /var/www/html
Hat jemand eine Idee?
Das habe ich mit der Ugreen Docker App bereitgestellt da Portainer aus irgendeine Grund kein Lust hatte die Dockerfile zu finden.