Sign inSign up

milanzdravkovic/php7.4-apache2-debian12

By milanzdravkovic

•Updated over 1 year ago

Apache with PHP 7.4 on Debian 12. Lightweight, ready to run legacy PHP apps.

Image
Languages & frameworks
Web servers
1

200

milanzdravkovic/php7.4-apache2-debian12 repository overview

PHP 7.4 + Apache on Debian 12 (Bookworm)

This image provides a lightweight, production-ready Apache HTTP Server (2.4) with PHP 7.4 running on Debian 12 (Bookworm). It is suitable for running and maintaining legacy PHP 7.4 applications in containerized environments.

Features:

  • Based on Debian 12 (bookworm-slim)
  • Apache 2.4 HTTP Server
  • PHP 7.4 from the Sury community-maintained repository
  • mod_php and mod_rewrite enabled by default
  • Runs as the secure default www-data user
  • Clean build process (APT cache removed to reduce image size)

Use Cases:

  • Hosting legacy PHP 7.4 applications
  • Lightweight container for development or testing
  • Base image for extending custom PHP 7.4 stacks

Security and Maintenance:

  • This image uses community packages from packages.sury.org which may not receive long-term security support.

How to Use

To run the image:

docker run -p 8080:80 milanzdravkovic/php7.4-apache2-debian12

To mount your application:

docker run -p 8080:80 -v $(pwd):/var/www/html milanzdravkovic/php7.4-apache2-debian12

Tag summary

Content type

Image

Digest

sha256:2486e6198…

Size

71 MB

Last updated

over 1 year ago

docker pull milanzdravkovic/php7.4-apache2-debian12:v1.0.6