Is there a docker image for Apache PHP7?
It provides a basic LAP stack using Alpine, Apache2, and PHP7, loading various extensions along the way (see the Dockerfile for the full list). It should get you started with a full LAP stack and DB support via a linked container (like mysql) with ease, allowing you to tune various aspects of the server and php via environment variables.
Table of Contents
How big is a docker image based on Alpine Linux?
A minimal Alpine Linux based Docker image with a full package index and only 5 MB in size! Where to get help: Docker Community Forums, Docker Community Slack or Stack Overflow Maintained by: Natanael Copa (Alpine Linux maintainer) Supported architectures: (more info) amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
Can you run a PHP script in Docker?
In such cases, you can run a PHP script using the PHP Docker image directly: many extensions are already compiled into the image, so it’s worth checking the output of php -m or php -i before you go out of your way to compile more.
How to enable PHP MySQL extensions in Docker container?
How to enable php mysql extensions in docker container? – Stack Overflow Closed 1 year ago.
How to create a PHP container in Docker?
The command does the following: If the php:apache Docker image is not present in the local Docker registry on your machine, it will be downloaded from the Docker Hub. Create a new container based on the php:apache image. It maps port 80 on the container to port 8082 on its host machine.
Where does the Apache server run in Docker?
Port 80 inside the container, which is where the Apache HTTP server runs, maps to port 8082 on the host. So you can access this with http://localhost:8082/.
How to run Docker Compose with invalid command?
EDIT: I must say that if I remove the rewrite rules, everything works. Don’t forget to run your docker-compose up command with –build if you’ve already built the image before; otherwise it will run the old image which may not have included the RUN a2enmod rewrite statement. Thanks for contributing an answer to Stack Overflow!