A webserver with preinstalled and preconfigured php support based on ubuntu/apache2
277
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.
| Parameter | Description |
|---|---|
-e TZ=UTC | Timezone. |
-p 8080:80 | Expose Apache2 on localhost:8080. |
-v /local/path/to/website:/var/www/html | Mount and serve a local website (php support automatically activated). |
-v /path/to/apache2.conf:/etc/apache2/apache2.conf | pass custom config file for the apache2 webserver |
To debug the container:
docker logs -f web-container
To get an interactive shell:
docker exec -it web-container /bin/bash
Content type
Image
Digest
sha256:1404e43ab…
Size
96.3 MB
Last updated
about 2 years ago
docker pull oklinq/apache2-php