Sign inSign up

mobilesnapp/dockbox-apache

By mobilesnapp

•Updated over 10 years ago

Apache HTTP server container for Dockbox

Image
0

368

mobilesnapp/dockbox-apache repository overview

⁠Apache HTTP server container for Dockbox

forthebadge

Dockbox helps you run your PHP development environment on Docker. It provides all the virtual development environments that you would normally need for your PHP development. Dockbox is a tool that controls Docker for you (using Docker Compose official commands).

⁠Usage

$ docker run -d -p 80:80 mobilesnapp/dockbox-apache

With all the options:

$ docker run -d -p 80:80 \
    -v /home/user/app:/var/www/site \
    -e PHP_ERROR_REPORTING='E_ALL & ~E_STRICT' \
    mobilesnapp/dockbox-apache

-v [local path]:/var/www/site 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.

With SSL options

$ docker run -d -p 80:80 -p 443:443 \
    -v /home/user/app:/var/www/site \
    -e PHP_ERROR_REPORTING='E_ALL & ~E_STRICT' \
    mobilesnapp/dockbox-apache

⁠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

⁠Configuration

.htaccess-Enabled in webroot (mod_rewrite with AllowOverride all)

⁠Author

MobileSnapp ([email protected]⁠)

Tag summary

Content type

Image

Digest

Size

94.9 MB

Last updated

over 10 years ago

docker pull mobilesnapp/dockbox-apache