fix: replace mysql-server with mariadb-server for Debian 12/13 compatibility
- Use mariadb-server instead of mysql-server (works on both Ubuntu and Debian) - Update mysql_service to mariadb for proper service management - Update docker/Dockerfile and start-services.sh for MariaDB
This commit is contained in:
@@ -50,8 +50,8 @@ RUN apt-get update && apt-get install -y \
|
||||
# Web server
|
||||
nginx \
|
||||
# Database
|
||||
mysql-server \
|
||||
mysql-client \
|
||||
mariadb-server \
|
||||
mariadb-client \
|
||||
# PHP and extensions
|
||||
php8.4 \
|
||||
php8.4-fpm \
|
||||
@@ -84,7 +84,7 @@ RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/
|
||||
# Configure systemd
|
||||
RUN systemctl enable ssh \
|
||||
&& systemctl enable nginx \
|
||||
&& systemctl enable mysql \
|
||||
&& systemctl enable mysql mariadb \
|
||||
&& systemctl enable php8.4-fpm
|
||||
|
||||
# Create web directory structure
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
# Services für LEMP-Stack starten
|
||||
|
||||
# MySQL starten
|
||||
service mysql start
|
||||
# MySQL/MariaDB starten
|
||||
service mysql start || service mariadb start
|
||||
|
||||
# PHP-FPM starten
|
||||
service php8.4-fpm start
|
||||
|
||||
Reference in New Issue
Block a user