Sign inSign up

herlon214/docker-apache-php56

By herlon214

•Updated almost 8 years ago

A Docker image based on Debian Jessie, serving PHP 5.6 running as Apache Module.

Image
0

1.4K

herlon214/docker-apache-php56 repository overview

⁠apache-php56

A Docker image based on Debian Jessie, serving PHP 5.6 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: Debian 8 (Jessie), Apache 2.4, PHP 5.6.x with support for setting error_reporting

⁠Usage

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

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-php56
  • -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

  • Debian 8 (jessie)
  • locales
  • apache2
  • git-core
  • php5
  • php5-cli
  • libapache2-mod-php5
  • php5-gd
  • php5-json
  • php5-ldap
  • php5-mysql
  • php5-pgsql
  • php5-curl

⁠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)

Tag summary

Content type

Image

Digest

Size

118.7 MB

Last updated

almost 8 years ago

docker pull herlon214/docker-apache-php56