moodlehq / moodle-docker

A docker environment for moodle developers
GNU General Public License v3.0
414 stars 254 forks source link

PHP 7.1 mcrypt is missing #99

Closed vsotirasqmplus closed 5 years ago

vsotirasqmplus commented 5 years ago

inside the PHP 7.1 I cannot see the mcrypt module being included , so we could start the transformation to the new library

vsotirasqmplus commented 5 years ago

Attempted to install it and failed

root@9dd2d41d44be:/var/www/html# pecl install channel://pecl.php.net/mcrypt-1.0.2 pecl/mcrypt requires PHP (version >= 7.2.0, version <= 7.4.0, excluded versions: 7.4.0), installed version is 7.1.26 No valid packages found install failed root@9dd2d41d44be:/var/www/html# php -v PHP 7.1.26 (cli) (built: Jan 11 2019 02:44:23) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.1.26, Copyright (c) 1999-2018, by Zend Technologies

vsotirasqmplus commented 5 years ago

Solution: pecl install mcrypt-1.0.0

scara commented 5 years ago

Hi @vsotirasqmplus, IIUC this issue should be filed on https://github.com/moodlehq/moodle-php-apache/.

BTW what is your use case? mcrypt has been deprecated.

HTH, Matteo

vsotirasqmplus commented 5 years ago

Hi,

Thanks for the message.

We still have to support some abandoned 3rd party plugins for our institution so having mcrypt will be useful for the transition development

Sincerely

Vasileios Sotiras

e-Learning Systems Development Analyst

Information Technology Services

Queen Mary University of London

Rm TB.102, Mile End, London, E1 4NS

Tel: +44 (0) 20 7882 6926

Email: v.sotiras@qmul.ac.uk

Like numbers? Check these ones out - QMUL ITS Statisticshttp://www.its.qmul.ac.uk/support/statistics/index.html

Queen Mary is committed to reducing its carbon footprint. Please only print this email if absolutely necessary.

[cid:d3cd525c-4da7-41ff-a9bb-bbcd445f5369]


From: Matteo Scaramuccia notifications@github.com Sent: 08 May 2019 10:40 To: moodlehq/moodle-docker Cc: Vasileios Sotiras; Mention Subject: Re: [moodlehq/moodle-docker] PHP 7.1 mcrypt is missing (#99)

Hi @vsotirasqmplushttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fvsotirasqmplus&data=02%7C01%7Cv.sotiras%40qmul.ac.uk%7Cba43239854744b3a609d08d6d3992eb7%7C569df091b01340e386eebd9cb9e25814%7C0%7C0%7C636929052196917141&sdata=2EopDjI4D8VuKARrhoaCTj1jK%2F2eroDWIxiNI%2FcTV94%3D&reserved=0, IIUC this issue should be filed on https://github.com/moodlehq/moodle-php-apache/https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmoodlehq%2Fmoodle-php-apache%2F&data=02%7C01%7Cv.sotiras%40qmul.ac.uk%7Cba43239854744b3a609d08d6d3992eb7%7C569df091b01340e386eebd9cb9e25814%7C0%7C0%7C636929052196927136&sdata=qvJZ7qc2LJC6e3MVznWDuD1NQDqKK5rvR9fwko%2BHnLk%3D&reserved=0.

BTW what is your use case? mcrypt has been deprecatedhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.php.net%2Fmanual%2Fen%2Fmigration71.deprecated.php%23migration71.deprecated.ext-mcrypt&data=02%7C01%7Cv.sotiras%40qmul.ac.uk%7Cba43239854744b3a609d08d6d3992eb7%7C569df091b01340e386eebd9cb9e25814%7C0%7C0%7C636929052196927136&sdata=GYVG0XbTO7tvZtYPOf8YldqvRpnOMhH%2FiZMOWj7qhxw%3D&reserved=0.

HTH, Matteo

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmoodlehq%2Fmoodle-docker%2Fissues%2F99%23issuecomment-490420497&data=02%7C01%7Cv.sotiras%40qmul.ac.uk%7Cba43239854744b3a609d08d6d3992eb7%7C569df091b01340e386eebd9cb9e25814%7C0%7C0%7C636929052196937128&sdata=53FdUwJ0uVZCZVIxfBHAvAZsLqSL%2Bo4NTAQzpqOmlkU%3D&reserved=0, or mute the threadhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFLOSLI2SHLRSJGJBNCMC3DPUKNYBANCNFSM4HLP67CQ&data=02%7C01%7Cv.sotiras%40qmul.ac.uk%7Cba43239854744b3a609d08d6d3992eb7%7C569df091b01340e386eebd9cb9e25814%7C0%7C0%7C636929052196937128&sdata=StlJxPgPzd1Nz%2B17A34jmE0MSuhrS484rnXBKVCTCi8%3D&reserved=0.

vsotirasqmplus commented 5 years ago

docker exec -it moodle-docker_webserver_1 bash -c "pecl install mcrypt-1.0.0 <</dev/null" docker exec -it moodle-docker_webserver_1 bash -c "echo extension=/usr/local/lib/php/extensions/no-debug-non-zts-20160303/mcrypt.so >> /usr/local/etc/php/conf.d/docker-php-ext-mcrypt.ini" docker exec -it moodle-docker_webserver_1 apachectl graceful

scara commented 5 years ago

TNX @vsotirasqmplus for posting the commands required to successfully install mcrypt in an already running moodle docker Compose stacks 👍.