SUSE Support

Here When You Need Us

SLES15SP1 install php7-mcrypt module

This document (000019743) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 15 Support Pack 1

Situation

The mcrypt encryption module rpm package hase been removed and now this has to be compiled and installed manually..

Resolution

installation method:
SUSEConnect --product sle-module-basesystem/15.1/x86_64
SUSEConnect --product PackageHub/15.1/x86_64

zypper in -y php7-devel
zypper in -y gcc gcc-c++
zypper in -y re2c

Two tgz packages have been uploaded to the tid attachment
tar zxvf libmcrypt-2.5.8.tar.gz
cd libmcrypt-2.5.8/
./configure
make && make install

tar zxvf mcrypt-1.0.1.tgz
cd mcrypt-1.0.1/
/usr/bin/phpize
./configure --with-php-config=/usr/bin/php-config
make && make install
Add a line at the end of the /etc/php7/cli/php.ini file:
extension=mcrypt.so
To check if the correct version is running and the module has been installed run:
# php --version
PHP 7.2.5 (cli) (NTS)
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
# php -m|grep mc
mcrypt

Cause

The mcrypt package has been removed

Status

Reported to Engineering

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000019743
  • Creation Date: 22-Oct-2020
  • Modified Date:23-Oct-2020
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.