Sign inSign up

aoware/php-apache-ready

By aoware

•Updated about 2 months ago

Php running under apache, with most common php extensions and CLI tools. No local DB.

Image
Languages & frameworks
0

3.6K

aoware/php-apache-ready repository overview

php-apache-ready is a set of docker images that include the php 7.x.y-apache and php 8.x.y-apache base images, along with the most common php extensions, as well as some CLI Tools to help during the development/debugging process.

There is no local DB on this image, as it is assumed either a local DB would be already installed on the local host, or usage of distant database is required.

The purpose of this image is mainly to help rapid local development, it is not targeting a live deployment. It is supporting the development of aoWare's sites:

⁠Common PHP extensions installed:
  • mysqli
  • intl
  • bcmath
  • sockets
  • imagemagick
  • exif
  • gd
  • gmp
⁠CLI Tools installed:
  • composer

  • curl

  • nano

  • imagemagick

  • node

  • npm

⁠Differences between the php 7 and 8 versions:
  • 7 - The root of the web folder is set to /var/www/html

  • 8 - The root of the web folder is set to /var/www/html/public

⁠Using the image

⁠Run this container

Use the following command to start your container:

docker run -d --name bac-php74 -p 80:80 -v C:\htdocs\bac:/var/www/html aoware/php-apache-ready:tag
⁠What each part does
OptionDescription
-dRun the container in detached mode (in the background)
--name bac-php74Assign a custom name to the container for easy reference
-p 80:80Map host port 80 to container port 80 (access via http://localhost)
-v C:\htdocs\bac:/var/www/htmlMount your local folder C:\htdocs\bac to /var/www/html inside the container
aoware/php-apache-readyThe name of the Docker image to run
tagThe tag associated with the Docker image to run which is dictating the php version to use

Tag summary

Content type

Image

Digest

sha256:c62aced71…

Size

386.5 MB

Last updated

about 2 months ago

docker pull aoware/php-apache-ready:8.5.10