Skip to content

demartis/docker-php-apache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ready-to-use Apache+PHP image

Docker Automated build Docker Build Status Build Status GitHub last commit GitHub repo size in bytes GitHub language count GitHub FOSSA 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.4 Apache + PHP 7.3 Apache + PHP 7.2
latest
7.4 7.3 7.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.yml

version: "3.8"
services:

  web:
    image: demartis/apache-php:7.4
    ports:
      - "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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published