A combined Apache/PHP Docker image.
559
PHPApache with mode rewrites enabledmsmtp is installed and configured (see config/msmtprc) to send mail locally for testing via apps like Mailcatcher which will work out of the box (if Mailcatcher container is titled mailcatcher)fmysql_pdo is installed as the driver for database connectionsgd is installed for image processingzip is installed for items that may need that# Dockerfile
FROM: justintime50/apache-php:latest
# docker-compose
image: justintime50/apache-php:latest
Place your site files into /var/www/html inside the container to get started with this image. This can be achieved by using a volume in a docker-compose file or by copying them in a Dockerfile.
Want to give this image a spin? Simply run the following:
docker-compose up -d
There is a sample php.ini file in the config folder. Additionally, there is a sample .htaccess file in the src folder which will remove .php file extensions from URLs.
latest - uses the latest explicitly requested release on the PHP Apache track.8.0 - uses the latest release on the PHP 8.0 Apache track.7.4 - uses the latest release on the PHP 7.4 Apache track.7.3 - uses the latest release on the PHP 7.3 Apache track. - Deprecated7.2 - uses the latest release on the PHP 7.2 Apache track. - Deprecated7.1 - uses the latest release on the PHP 7.1 Apache track. - Deprecated7.0 - uses the latest release on the PHP 7.0 Apache track. - Deprecateddev - the testing branch for this image. Do not use this tag in production.This image supports swapping in the version number of PHP with a value from the official PHP Apache tag list.
Automated Builds
GitHub Actions will automatically build and push supported tags to Docker Hub on each new release and Docker Hub will automatically build the latest tag on any push to the main branch.
Manual Builds
docker build -t justintime50/apache-php:8.0 --build-arg VERSION=8.0 .
sudo docker push justintime50/apache-php:8.0
Content type
Image
Digest
Size
145.2 MB
Last updated
over 5 years ago
docker pull justintime50/apache-php