Skip to content

Instantly share code, notes, and snippets.

@chronon
Created February 18, 2017 15:38
Show Gist options
  • Select an option

  • Save chronon/95911d21928cff786e306c23e7d1d3f3 to your computer and use it in GitHub Desktop.

Select an option

Save chronon/95911d21928cff786e306c23e7d1d3f3 to your computer and use it in GitHub Desktop.
List of docker-php-ext-install extension names
Possible values for ext-name:
bcmath
bz2
calendar
ctype
curl
dba
dom
enchant
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
imap
interbase
intl
json
ldap
mbstring
mcrypt
mysqli
oci8
odbc
opcache
pcntl
pdo
pdo_dblib
pdo_firebird
pdo_mysql
pdo_oci
pdo_odbc
pdo_pgsql
pdo_sqlite
pgsql
phar
posix
pspell
readline
recode
reflection
session
shmop
simplexml
snmp
soap
sockets
spl
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
@ZnK88

ZnK88 commented Dec 6, 2020

Copy link
Copy Markdown

Thanks

@tmojzes

tmojzes commented Apr 22, 2021

Copy link
Copy Markdown

extension: zip

RUN apt-get update \
	&& apt-get install -y \
		libzip-dev \
	&& docker-php-ext-install -j$(nproc) \
		zip \
	&& apt-get purge -y \
		libzip-dev

@romfi

romfi commented Jun 17, 2021

Copy link
Copy Markdown

May you guide me on installing pdflib extension? Thank you!

@asiby

asiby commented Jun 17, 2021

Copy link
Copy Markdown

This is one possible way of installing pdflib. I have copied it from a dockerfile.

Disclaimer #1: I have not tried it.
Disclaimer #2: The URL for donwloading PDFlib is http (not secure) instead https.

ENV TNS_ADMIN=/etc

RUN curl -o /tmp/pdflib-php.tar.gz -SL "http://www.pdflib.com/binaries/PDFlib/906/PDFlib-9.0.6p2-Linux-x86_64-php.tar.gz" \
    && curl -o /tmp/oracle-instantclient.x86_64.rpm -SL "https://raw.githubusercontent.com/astrobl1904/docker-library/master/php-dev/commercial-components/oracle-instantclient.x86_64.rpm" \ 
   && yum --setopt=tsflags=nodocs --nogpgcheck -y install tar /tmp/oracle-instantclient.x86_64.rpm \ 
   && install -m 755 -d /usr/lib64/php/modules \ 
   && tar -xzf /tmp/pdflib-php.tar.gz -C /usr/lib64/php/modules --no-same-owner --no-same-permissions --strip-components=4 */php-700/php_pdflib.so \ 
   && echo "/usr/lib/oracle/12.1/client64/lib" > /etc/ld.so.conf.d/oracle-instantclient.x86_64.conf \ 
   && echo "# Placeholder tnsnames.ora for Docker containers" > $TNS_ADMIN/tnsnames.ora \ 
   && rm -rf /tmp/*.rpm /tmp/*.tar.gz

@vz-spr

vz-spr commented Oct 16, 2021

Copy link
Copy Markdown

Thank you!

@Romitou

Romitou commented Nov 3, 2021

Copy link
Copy Markdown

❤️

@eboboshka

Copy link
Copy Markdown

extension: wddx

This extension is DEPRECATED and UNBUNDLED as of PHP 7.4.0. - https://www.php.net/manual/en/intro.wddx.php

@EdwinWalela

Copy link
Copy Markdown

Trying to follow the format above to enable sockets with PHP 8.1.2 but no luck.

RUN docker-php-ext-install sockets && docker-php-ext-enable sockets

Any ideas?

@fredericogcruz

Copy link
Copy Markdown

error: /usr/src/php/ext/interbase does not exist

@chronon

chronon commented Feb 1, 2023

Copy link
Copy Markdown
Author

@EdwinWalela This works for me with PHP 8.2, no need for the enable part:

RUN docker-php-ext-install -j$(nproc) sockets

@hawkinstg

Copy link
Copy Markdown

Anyone have any guidance for installing the tidy extension? We've tried to no avail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment