GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - bylexus/docker-apache-php7: Docker image with apache 2.4, PHP 7, configurable PHP error_reporting setting

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
.dockerignore
.dockerignore
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
apache_default
apache_default
 
 
run
run
 
 

Repository files navigation

apache-php7

A Docker image based on Ubuntu, serving PHP 7 running as Apache Module. Useful for Web developers in need for a fixed PHP version. In addition, the error_reporting setting in php.ini is configurable per container via environment variable.

Tags

  • latest: Ubuntu 16.04 (LTS), Apache 2.4, PHP 7.0.x with support for setting error_reporting

Usage

$ docker run -d -P bylexus/apache-php7

With all the options:

$ docker run -d -p 8080:80 \
    -v /home/user/webroot:/var/www \
    -e PHP_ERROR_REPORTING='E_ALL & ~E_STRICT' \
    bylexus/apache-php7
  • -v [local path]:/var/www maps the container's webroot to a local path
  • -p [local port]:80 maps a local port to the container's HTTP port 80
  • -e PHP_ERROR_REPORTING=[php error_reporting settings] sets the value of error_reporting in the php.ini files.

Access apache logs

Apache is configured to log both access and error log to STDOUT. So you can simply use docker logs to get the log output:

docker logs -f container-id

Installed packages

  • Ubuntu Server 16.04, based on ubuntu docker image
  • apache2
  • php7.0
  • php7.0-cli
  • libapache2-mod-php7.0
  • php-apcu
  • php-xdebug
  • php7.0-gd
  • php7.0-json
  • php7.0-ldap
  • php7.0-mbstring
  • php7.0-mysql
  • php7.0-pgsql
  • php7.0-sqlite3
  • php7.0-xml
  • php7.0-xsl
  • php7.0-zip
  • php7.0-soap
  • php7.0-opcache
  • composer

Default Configurations

  • Apache: .htaccess-Enabled in webroot (mod_rewrite with AllowOverride all)
  • php.ini:
    • display_errors = On
    • error_reporting = E_ALL (default, overridable per env variable)

About

Docker image with apache 2.4, PHP 7, configurable PHP error_reporting setting

Resources

Readme
MIT license
Activity

Stars

42 stars

Watchers

5 watching

Forks

44 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.