Code Monkey home page Code Monkey logo

docker-apache2-php5's Introduction

apache2-php5

Apache 2.x + mod_php 5.x

Based on debian:jessie.

Building

Just run make.

Volumes

  • /var/lib/php5/sessions (tmpfs is recommended)
  • /tmp/apache2-coredumps (optional)
  • /var/log/apache2
  • /var/www

Exposed ports

  • 8080/tcp

Environment variables

  • CREATE_USER_UID
  • CREATE_USER_GID
  • CREATE_SYMLINKS (for example: "/var/www/dir1>/var/dir1,/var/www/dir2>/var/dir2")
  • APACHE_COREDUMP
  • APACHE_RUN_USER
  • APACHE_RUN_GROUP
  • APACHE_MODS
  • APACHE_DOCUMENT_ROOT (/var/www/html by default)
  • APACHE_SERVER_NAME (hostname by default)
  • APACHE_ALLOW_OVERRIDE ('None' by default)
  • APACHE_ALLOW_ENCODED_SLASHES ('Off' by default)
  • APACHE_MAX_REQUEST_WORKERS (32 by default)
  • APACHE_MAX_CONNECTIONS_PER_CHILD (1024 by default)
  • APACHE_LOGLEVEL ('error' by default)
  • APACHE_ERRORLOG - a path for error log.
  • APACHE_CUSTOMLOG - a path for custom (access) log.
  • PHP_MODS
  • PHP_TIMEZONE ('UTC' by default)
  • PHP_SMTP - MTA SMTP IP-address/hostname
  • PHP_SMTP_FROM - default From header for mail (example: '[email protected]')
  • PHP_MBSTRING_FUNC_OVERLOAD - mbstring.func_overload (0 by default).
  • PHP_ALWAYS_POPULATE_RAW_POST_DATA - always_populate_raw_post_data (0 by default).
  • PHP_NEWRELIC_LICENSE_KEY - Newrelic agent license key (empty and disabled by default).
  • PHP_NEWRELIC_APPNAME - Newrelic application name (empty by default).
  • PHP_NEWRELIC_FRAMEWORK - Newrelic framework name ('no_framework' by default).
  • PHP_NEWRELIC_PORT - newrelic-daemon socket path or port number ('/run/newrelic/newrelic.sock' by default).

Required variables

Following variables must be defined to run the container:

  • PHP_SMTP
  • PHP_SMTP_FROM

Redirect access and error log to stdout

Set following environment variables:

  • APACHE_CUSTOMLOG='"|/bin/cat" combined'
  • APACHE_ERRORLOG='"|/bin/cat"'

XDebug setup for VS Code

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Listen for XDebug",
            "log": false,
            "type": "php",
            "request": "launch",
            "port": 9000,
            "pathMappings": {
                "/var/www": "${workspaceRoot}",
            }
        },
        {
            "name": "Launch currently open script",
            "type": "php",
            "request": "launch",
            "program": "${file}",
            "cwd": "${fileDirname}",
            "port": 9000,
        }
    ]
}

docker-apache2-php5's People

Contributors

antage avatar dkaledin avatar martinterp avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.