Sign inSign up

aoware/php-apache-ready

By aoware

•Updated 1 day ago

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

Image
Languages & frameworks
0

10K+

aoware/php-apache-ready repository overview

php-apache-ready is a collection of Docker images based on PHP 7.x.y-Apache and PHP 8.x.y-Apache. Each image includes commonly used PHP extensions and command-line tools to support development and debugging.

The images do not include a database. They assume you’ll use a database installed on your local host or connect to a remote database.

I aim to keep the images’ vulnerabilities to a minimum and address them as updates become available. Updates may sometimes be delayed due to time constraints.

These images are intended to support rapid local development, not production deployments. They are used to develop aoWare’s websites.

It is supporting the development of aoWare's sites:

⁠Common PHP extensions installed:
  • mysqli
  • intl
  • bcmath
  • sockets
  • imagemagick
  • exif
  • gd
  • gmp
  • zip
⁠CLI Tools installed:
  • composer
  • curl
  • nano
  • imagemagick
  • node
  • npm
  • default-mysql-client
⁠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:4ffb36857…

Size

452 MB

Last updated

1 day ago

docker pull aoware/php-apache-ready:8.4.23