Skip to content

PHP 7.4 & Apache Dockerfile

Evil Wizard edited this page Sep 8, 2023 · 3 revisions

A base PHP 7.4 Apache 2 image for demonstrating legacy projects available at EWC Docker Hub.

Use docker pull ewc2020/web:php-7.4-apache to get a copy of the image.

An old version of PHP that some codebase sites still require to emulate a production environment to run in.

Other Packages Included

  • Node
  • Composer v1.9.3
  • libxml2-dev
  • libzip-dev
  • libyaml-dev
  • zip
  • git
  • nodejs
  • default-mysql-client
  • vim
  • npm i npm@$NPM_VERSION -g
    • Uses a .env build-arg called NPM_VERSION to specify the npm version.
  • yaml

PHP Extensions

  • gettext
  • mysqli
  • pdo_mysql
  • zip
  • yaml
Clone this wiki locally