Ubuntu-based PHP image for common functions.
5.5K
PHP 4.4: Ubuntu 12.04 with backported PHP from Ubuntu 6.06
PHP 5.2: Ubuntu 12.04 with backported PHP from Ubuntu 9.10
PHP 5.3: Ubuntu 12.04
PHP 5.5: Ubuntu 14.04
PHP 5.6: Ubuntu 18.04 with Ondrey PPA
PHP 7.0: Ubuntu 16.04
PHP 7.2: Ubuntu 18.04
PHP 7.3: Ubuntu 20.04 with Ondrey PPA
PHP 7.4: Ubuntu 20.04
Ondrey PPA:
https://launchpad.net/~ondrej/+archive/ubuntu/php
https://launchpad.net/~ondrej/+archive/ubuntu/apache2
PHP 5.2:
apc curl fileinfo gd geoip gmp igbinary imagick imap intl ldap mcrypt memcache mhash mongo mssql mysqli mysql oauth odbc opcache pdo_dblib pdo pdo_mysql pdo_odbc pdo_pgsql pdo_sqlite pgsql ps radius recode redis sqlite ssh2 syck tidy uuid xmlrpc xsl yaml
(php -m result: apc bcmath bz2 calendar ctype curl date dba dom exif fileinfo filter ftp gd geoip gettext gmp hash iconv igbinary imagick imap intl json ldap libxml mbstring mcrypt memcache mhash mime_magic mongo mssql mysql mysqli ncurses OAuth odbc openssl pcntl pcre PDO pdo_dblib pdo_mysql PDO_ODBC pdo_pgsql pdo_sqlite pgsql posix ps radius recode redis Reflection session shmop SimpleXML soap sockets SPL SQLite ssh2 standard syck sysvmsg sysvsem sysvshm tidy tokenizer uuid wddx xml xmlreader xmlrpc xmlwriter xsl yaml Zend OPcache zip zlib)
PHP 5.3:
apc curl gd geoip gmp igbinary imagick imap intl ldap mcrypt memcache mongo mssql mysqli mysql oauth odbc opcache pdo_dblib pdo pdo_mysql pdo_odbc pdo_pgsql pdo_sqlite pgsql ps radius recode redis sqlite3 ssh2 tidy uuid xmlrpc xsl yaml
(php -m result: apc bcmath bz2 calendar Core ctype curl date dba dom ereg exif fileinfo filter ftp gd geoip gettext gmp hash iconv igbinary imagick imap intl json ldap libxml mbstring mcrypt memcache mhash mongo mssql mysql mysqli OAuth odbc openssl pcntl pcre PDO pdo_dblib pdo_mysql PDO_ODBC pdo_pgsql pdo_sqlite pgsql Phar posix ps radius recode redis Reflection session shmop SimpleXML soap sockets SPL sqlite3 ssh2 standard sysvmsg sysvsem sysvshm tidy tokenizer uuid wddx xml xmlreader xmlrpc xmlwriter xsl yaml Zend OPcache zip zlib)
PHP 5.5:
apcu curl gd geoip geos gmp igbinary imagick imap intl json ldap mcrypt memcache mongo mssql mysql mysqli oauth odbc opcache pdo pdo_dblib pdo_mysql pdo_odbc pdo_pgsql pdo_sqlite pgsql ps radius recode redis sqlite3 ssh2 tidy uuid xmlrpc xsl yaml
(php -m result: apc apcu bcmath bz2 calendar Core ctype curl date dba dom ereg exif fileinfo filter ftp gd geoip geos gettext gmp hash iconv igbinary imagick imap intl json ldap libxml mbstring mcrypt memcache mhash mongo mssql mysql mysqli OAuth odbc openssl pcntl pcre PDO pdo_dblib pdo_mysql PDO_ODBC pdo_pgsql pdo_sqlite pgsql Phar posix ps radius recode redis Reflection session shmop SimpleXML soap sockets SPL sqlite3 ssh2 standard sysvmsg sysvsem sysvshm tidy tokenizer uuid wddx xml xmlreader xmlrpc xmlwriter xsl yaml Zend OPcache zip zlib)
PHP 5.6:
apcu bcmath bz2 calendar ctype curl dba dom exif fileinfo ftp gd geoip geos gettext gmp iconv igbinary imagick imap intl json ldap mbstring mcrypt memcache mongo mssql mysql mysqli mysqlnd oauth odbc opcache pdo pdo_dblib pdo_mysql pdo_odbc pdo_pgsql pdo_sqlite pgsql phar posix ps radius recode redis shmop simplexml soap sockets sqlite3 ssh2 sysvmsg sysvsem sysvshm tidy tokenizer uuid wddx xml xmlreader xmlrpc xmlwriter xsl yaml zip
(php -m result: apc apcu bcmath bz2 calendar Core ctype curl date dba dom ereg exif fileinfo filter ftp gd geoip geos gettext gmp hash iconv igbinary imagick imap intl json ldap libxml mbstring mcrypt memcache mhash mongo mssql mysql mysqli mysqlnd OAuth odbc openssl pcntl pcre PDO pdo_dblib pdo_mysql PDO_ODBC pdo_pgsql pdo_sqlite pgsql Phar posix ps radius recode redis Reflection session shmop SimpleXML soap sockets SPL sqlite3 ssh2 standard sysvmsg sysvsem sysvshm tidy tokenizer uuid wddx xml xmlreader xmlrpc xmlwriter xsl yaml Zend OPcache zip zlib)
PHP 7.0:
apcu apcu_bc ast bcmath bz2 calendar ctype curl dba decimal dom exif fileinfo ftp gd geoip geos gettext gmp iconv igbinary imagick imap intl json ldap mbstring mcrypt memcache mongodb mysqli mysqlnd oauth odbc opcache pdo pdo_dblib pdo_mysql pdo_odbc pdo_pgsql pdo_sqlite pgsql phar posix ps radius recode redis shmop simplexml soap sockets sqlite3 ssh2 sysvmsg sysvsem sysvshm tidy tokenizer uuid wddx xml xmlreader xmlrpc xmlwriter xsl yaml zip
(php -m result: apc apcu ast bcmath bz2 calendar Core ctype curl date dba decimal dom exif fileinfo filter ftp gd geoip geos gettext gmp hash iconv igbinary imagick imap intl json ldap libxml mbstring mcrypt memcache mongodb mysqli mysqlnd OAuth odbc openssl pcntl pcre PDO pdo_dblib pdo_mysql PDO_ODBC pdo_pgsql pdo_sqlite pgsql Phar posix ps radius recode redis Reflection session shmop SimpleXML soap sockets SPL sqlite3 ssh2 standard sysvmsg sysvsem sysvshm tidy tokenizer uuid wddx xml xmlreader xmlrpc xmlwriter xsl yaml Zend OPcache zip zlib)
PHP 7.2:
apcu apcu_bc ast bcmath bz2 calendar ctype curl dba decimal dom exif fileinfo ftp gd geoip geos gettext gmp iconv igbinary imagick imap intl json ldap mbstring mcrypt memcache mongodb mysqli mysqlnd oauth odbc opcache pdo pdo_dblib pdo_mysql pdo_odbc pdo_pgsql pdo_sqlite pgsql phar posix ps radius recode redis shmop simplexml soap sockets sqlite3 ssh2 sysvmsg sysvsem sysvshm tidy tokenizer uuid wddx xml xmlreader xmlrpc xmlwriter xsl yaml zip
(php -m result: apc apcu ast bcmath bz2 calendar Core ctype curl date dba decimal dom exif fileinfo filter ftp gd geoip geos gettext gmp hash iconv igbinary imagick imap intl json ldap libxml mbstring mcrypt memcache mongodb mysqli mysqlnd OAuth odbc openssl pcntl pcre PDO pdo_dblib pdo_mysql PDO_ODBC pdo_pgsql pdo_sqlite pgsql Phar posix ps radius recode redis Reflection session shmop SimpleXML soap sockets sodium SPL sqlite3 ssh2 standard sysvmsg sysvsem sysvshm tidy tokenizer uuid wddx xml xmlreader xmlrpc xmlwriter xsl yaml Zend OPcache zip zlib)
PHP 7.4:
apcu apcu_bc ast bcmath bz2 calendar ctype curl dba decimal dom exif ffi fileinfo ftp gd geoip geos gettext gmp iconv igbinary imagick imap intl json ldap mbstring mcrypt memcache mongodb mysqli mysqlnd oauth odbc opcache pdo pdo_dblib pdo_mysql pdo_odbc pdo_pgsql pdo_sqlite pgsql phar posix ps radius redis shmop simplexml soap sockets sqlite3 ssh2 sysvmsg sysvsem sysvshm tidy tokenizer uuid xml xmlreader xmlrpc xmlwriter xsl yaml zip
(php -m result: apc apcu ast bcmath bz2 calendar Core ctype curl date dba decimal dom exif FFI fileinfo filter ftp gd geoip geos gettext gmp hash iconv igbinary imagick imap intl json ldap libxml mbstring mcrypt memcache mongodb mysqli mysqlnd OAuth odbc openssl pcntl pcre PDO pdo_dblib pdo_mysql PDO_ODBC pdo_pgsql pdo_sqlite pgsql Phar posix ps radius redis Reflection session shmop SimpleXML soap sockets sodium SPL sqlite3 ssh2 standard sysvmsg sysvsem sysvshm tidy tokenizer uuid xml xmlreader xmlrpc xmlwriter xsl yaml Zend OPcache zip zlib)
IMPORTANT: If you are having problems (ex. segfault) with legacy applications (PHP 5.2-5.6), please disable Zend OPcache module: php.ext.opcache=0
All image shipped with default and overrideable PHP settings.
Useable environment variables:
php.ext.EXTENSION_NAME
example:
php.ext.pgsql=0
php.ext.redis=1
php.var.VARIABLE_NAME
example:
php.var.xdebug.remote_enable=true
php.var.memory_limit=512m
Useable environment variables:
PUID: www-data user new user id value
PGID: www-data user new group id value
Useable environment variables:
PUID: www-data user new user id value
PGID: www-data user new group id value
SU: If value=1, then force unprivileged (username: www-data) shell
TZ: Timezone (ex.: Europe/Budapest)
Content type
Image
Digest
sha256:8e376818b…
Size
83.1 MB
Last updated
11 months ago
docker pull nevergone/php-common:8.3.6--2025-12-08