Sign inSign up

mxmfrlv/php-apache

By mxmfrlv

Updated over 1 year ago

php:apache with additional extensions. Designed for local mysql (--network=host). Default port: 8080

Image
Languages & frameworks
Web servers
0

888

mxmfrlv/php-apache repository overview

This repository contains PHP:8.4-Apache docker image with some additional extensions.

The image is intended to be used with a locally-runned MariaDB/MySql (using the host network / --network=host docker option) or inside the same pod as the MariaDB/MySql service. The default exposed port is 8080.

The mysql socket is redirected by socat to localhost:3306, so localhost (without port) may be used in php code to connect to the mysql database. Migration from locally installed apache/php can be thus made without code changes.

The latest and 8.4-slim images are minified by slimtoolkit.

Basic usage
docker run -d --rm --network=host --name php8 -v "./www":/var/www/html mxmfrlv/php-apache:latest

Available php extensions

The following extensions are available

apcu bcmath bz2 exif gd gmp intl mongodb mysqli opcache pdo_mysql pdo_pgsql pgsql rdkafka redis sockets zip

in addition to those in the official PHP docker image :

ctype, curl, date, dom, fileinfo, filter, hash, iconv, json, libxml, mbstring, mysqlnd, openssl, pcre, PDO, pdo_sqlite, Phar, posix, random, readline, Reflection, session, SimpleXML, sodium, SPL, sqlite3, standard, tokenizer, xml, xmlreader, xmlwriter, zlib

Tag summary

Content type

Image

Digest

sha256:d8e216e73

Size

42.1 MB

Last updated

over 1 year ago

docker pull mxmfrlv/php-apache