Sign inSign up

oklinq/apache2-php

By oklinq

Updated about 2 years ago

A webserver with preinstalled and preconfigured php support based on ubuntu/apache2

Image
Web servers
0

277

oklinq/apache2-php repository overview

Usage

Launch this image locally:

docker run -dit --name web-container -e TZ=UTC -p 8080:80 oklinq/apache2-php

Access your Apache2 server at http://localhost:8080.

Parameters
ParameterDescription
-e TZ=UTCTimezone.
-p 8080:80Expose Apache2 on localhost:8080.
-v /local/path/to/website:/var/www/htmlMount and serve a local website (php support automatically activated).
-v /path/to/apache2.conf:/etc/apache2/apache2.confpass custom config file for the apache2 webserver
Testing/Debugging

To debug the container:

docker logs -f web-container

To get an interactive shell:

docker exec -it web-container /bin/bash

Tag summary

Content type

Image

Digest

sha256:1404e43ab

Size

96.3 MB

Last updated

about 2 years ago

docker pull oklinq/apache2-php