Skip to content

Latest commit

History

26 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Ready-to-use Apache+PHP image

Docker Automated buildDocker Build StatusBuild StatusGitHub last commitGitHub repo size in bytesGitHub language countGitHubFOSSA Status

Table of Contents

About

These images are configured:

What's included

  • based on apache 2.4 + php 7.4 - 7.3 - 7.2 (from latest PHP Official 7.x-apache-buster)
  • enabled most common php ext (like opcache, gd, imagick. See below the complete list)
  • added certbot to bettter working with apache

Tags

Each tag points to respective latest release

Apache + PHP 7.4Apache + PHP 7.3Apache + PHP 7.2
latest
7.47.37.2

Simple Usage

  1. Pull

    docker pull demartis/apache-php:7.4
  2. Check

    docker run --rm demartis/apache-php:7.4 apache2 -v && php --version && php -m
  3. Run

    docker run -d \
    -p 127.0.0.1:80:80 \
    demartis/apache-php:7.4
  4. check on you browser http://127.0.0.1/phpinfo.php

Simple docker-compose example

# docker-compose.ymlversion: "3.8"services:
web:
image: demartis/apache-php:7.4ports:
- "80:80"
- "443:443"volumes:
- ./data/var/www:/var/www:cached
- ./data/etc/sites-available:/etc/apache2/sites-available/
- ./data/etc/sites-enabled:/etc/apache2/sites-enabled/
- ./data/etc/php.ini:/usr/local/etc/php/php.ini
- ./logs/apache/:/var/log/apache2
- ./data/etc/letsencrypt/:/etc/letsencrypt

PHP enabled modules (php -m)

[PHP Modules]

  • apcu
  • calendar
  • Core
  • ctype
  • curl
  • date
  • dom
  • exif
  • fileinfo
  • filter
  • ftp
  • gd
  • gettext
  • hash
  • iconv
  • imagick
  • intl
  • json
  • libxml
  • mbstring
  • mcrypt
  • memcached
  • mysqli
  • mysqlnd
  • openssl
  • pcntl
  • pcre
  • PDO
  • pdo_mysql
  • pdo_sqlite
  • Phar
  • posix
  • readline
  • redis
  • Reflection
  • session
  • shmop
  • SimpleXML
  • sockets
  • sodium
  • SPL
  • sqlite3
  • standard
  • timezonedb
  • tokenizer
  • xml
  • xmlreader
  • xmlwriter
  • Zend OPcache
  • zip
  • zlib

[Zend Modules]

  • Zend OPcache

Links

GitHub, DockerHub, Fossa, My Linkedin Profile

About

Apache + PHP docker images

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages