Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker php7.2 not installing mcrypt #541

Closed
Niko-La opened this issue Dec 13, 2017 · 6 comments
Closed

docker php7.2 not installing mcrypt #541

Niko-La opened this issue Dec 13, 2017 · 6 comments

Comments

@Niko-La
Copy link

Niko-La commented Dec 13, 2017

I am running wordpress:latest docker image (wp 4.9.1 ,php7.2)

For my payment gateway i need mcrypt

my dockerfile contains

RUN apt install libmcrypt-dev
RUN docker-php-ext-install -j$(nproc) mcrypt

or
RUN docker-php-ext-configure mcrypt
RUN docker-php-ext-install -j$(nproc) mcrypt

Both are not working

`

usage: /usr/local/bin/docker-php-ext-configure ext-name [configure flags]
ie: /usr/local/bin/docker-php-ext-configure gd --with-jpeg-dir=/usr/local/something

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 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 sodium spl standard sysvmsg sysvsem sysvshm tidy tokenizer wddx xml xmlreader xmlrpc xmlwriter xsl zend_test zip

`

@Niko-La Niko-La changed the title docker php7.2 not installing mcrypy docker php7.2 not installing mcrypt Dec 13, 2017
@cdtweb
Copy link

cdtweb commented Dec 13, 2017

FYI

mcrypt has been deprecated in 7.1 and removed in 7.2 in favor of OpenSSL

@tianon
Copy link
Member

tianon commented Dec 13, 2017

Source: https://secure.php.net/manual/en/migration71.deprecated.php

@soullivaneuh
Copy link

mcrypt has been deprecated in 7.1 and removed in 7.2 in favor of OpenSSL

Is OpenSSL installed as default? Because I can't see it on the available extension to install.

@yosifkit
Copy link
Member

yosifkit commented Feb 5, 2018

@soullivaneuh , It is already there:

$ docker run -it --rm php:7.2 php -m
[PHP Modules]
Core
ctype
curl
date
dom
fileinfo
filter
ftp
hash
iconv
json
libxml
mbstring
mysqlnd
openssl
pcre
PDO
pdo_sqlite
Phar
posix
readline
Reflection
session
SimpleXML
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
zlib

[Zend Modules]

@mk-j
Copy link

mk-j commented Jan 7, 2019

Many legacy applications still need access to mcrypt. It was moved to pecl. For php 7.2+ try:

RUN apt-get update -y && \
    apt-get install -y libmcrypt-dev && \
    pecl install mcrypt-1.0.1 && \
    docker-php-ext-enable mcrypt

@uurtech
Copy link

uurtech commented Jan 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants