Ported the original passman PHP/MySQL application to a Docker-based setup using Apache and MariaDB. Fixed compatibility issues with modern PHP/MariaDB versions (HTTP header handling and database collation) using minimal, targeted changes. Preserved the original application logic and structure while ensuring correct execution in a contemporary containerized environment.
11 lines
219 B
Docker
11 lines
219 B
Docker
FROM php:8.2-apache
|
|
|
|
# Install mysqli extension (needed for mysqli_connect)
|
|
RUN docker-php-ext-install mysqli
|
|
|
|
# Optional: enable rewrite
|
|
RUN a2enmod rewrite
|
|
|
|
# Keep default docroot: /var/www/html
|
|
WORKDIR /var/www/html
|