# Software Collections PHP 7 mcrpyt library not available ?

**URL:** <https://forum.virtualmin.com/t/software-collections-php-7-mcrpyt-library-not-available/55563>\
**Category:** Virtualmin\
**Created:** [February 28, 2017, 5:13pm UTC](https://forum.virtualmin.com/t/software-collections-php-7-mcrpyt-library-not-available/55563 "2017-02-28T17:13:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![applejack](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/a/6f9a4e/32.png) [@applejack](https://forum.virtualmin.com/u/applejack)\
**Post date:** [February 28, 2017, 5:13pm UTC](https://forum.virtualmin.com/t/software-collections-php-7-mcrpyt-library-not-available/55563/1 "2017-02-28T17:13:05Z")

</div>

I just installed php 7 via Software Collections but can’t find a version of mcrypt for it anywhere.

Anyone know whether or not this is available as I just read a blog post from Remi who made the version for php5.6 saying it is outdated and shouldn’t be used anymore ?

phpMyAdmin for one won’t work without it and maybe some payment gateways.

---

<div class="post-metadata">

**Author:** ![Eric](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/e/898d66/32.png) [@Eric](https://forum.virtualmin.com/u/Eric)\
**Post date:** [February 28, 2017, 5:41pm UTC](https://forum.virtualmin.com/t/software-collections-php-7-mcrpyt-library-not-available/55563/2 "2017-02-28T17:41:37Z")

</div>

Howdy,

Take a peek at the phpmore repo in SCL, I think that’ll have what you’re after:

[https://www.softwarecollections.org/en/scls/remi/php56more/](https://www.softwarecollections.org/en/scls/remi/php56more/)

---

<div class="post-metadata">

**Author:** ![Diabolico](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/d/71e660/32.png) [@Diabolico](https://forum.virtualmin.com/u/Diabolico)\
**Post date:** [March 1, 2017, 2:09am UTC](https://forum.virtualmin.com/t/software-collections-php-7-mcrpyt-library-not-available/55563/3 "2017-03-01T02:09:00Z")

</div>

From that link “This collection is deprecated…”.

But you can install mcrypt directly from Remi repo with `yum install php70-php-mcrypt` in case of multiple PHP running side by side or `yum install php-mcrypt` if PHP 7 is the only PHP running on your system. In both cases you will need to enable Remi PHP 7 repo.

Just so you know php-mcrypt will be deprecated once 7.1+ PHP is out: [https://wiki.php.net/rfc/mcrypt-viking-funeral](https://wiki.php.net/rfc/mcrypt-viking-funeral).

---

<div class="post-metadata">

**Author:** ![applejack](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/a/6f9a4e/32.png) [@applejack](https://forum.virtualmin.com/u/applejack)\
**Post date:** [March 1, 2017, 5:07pm UTC](https://forum.virtualmin.com/t/software-collections-php-7-mcrpyt-library-not-available/55563/4 "2017-03-01T17:07:56Z")

</div>

Hi andreychek

That repo is for php5.6 not php7

In the instructions on [https://www.virtualmin.com/documentation/web/multiplephp](https://www.virtualmin.com/documentation/web/multiplephp) for installing php7

yum install rh-php70 rh-php70-php-mysqlnd

This only installs 11 packages whereas yum install rh-php70\* there are 40 packages. Are there any issues with installing the other packages besides the fact that rh-php70-scldevel won’t install if php5.6 is also installed as it conflicts with file from package rh-php56-scldevel ?

Hi Diabolico

yum install php70-php-mcrypt doesn’t work as it doesn’t install this is the correct place i.e. under /opt/rh/rh-php70

I did do a test install and moved the files to the correct place for installing phpmyadmin but it still doesn’t run as there is an error “session\_start(): Cannot find save handler ‘memcached’ - session startup failed” which maybe because of missing dependency.

---

<div class="post-metadata">

**Author:** ![Diabolico](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/d/71e660/32.png) [@Diabolico](https://forum.virtualmin.com/u/Diabolico)\
**Post date:** [March 2, 2017, 3:52am UTC](https://forum.virtualmin.com/t/software-collections-php-7-mcrpyt-library-not-available/55563/5 "2017-03-02T03:52:25Z")

</div>

Never used SCL because Remi was always working fine for me regardless if i do side-by-side installation or replacing existing PHP with new version, so cant make specific comments on SCL. Still i would not advise to use `rh-php70*` as this will install all packages, something you want to avoid at all cost as you will get a lot of PHP modules what you dont need and can me the cause for even more problems.

In “Third Party News” i posted a “How-To” to replace PHP 5.4 with 5.6 but with few minor changes you can use it to install other PHP versions side-by-side as the majority of steps are the same.

---

<div class="post-metadata">

**Author:** ![applejack](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/a/6f9a4e/32.png) [@applejack](https://forum.virtualmin.com/u/applejack)\
**Post date:** [March 2, 2017, 4:14pm UTC](https://forum.virtualmin.com/t/software-collections-php-7-mcrpyt-library-not-available/55563/6 "2017-03-02T16:14:38Z")

</div>

Using SCL installs all the files in a separate directory away from the core system files and allows you to select which version of php you want to use per virtual server plus per directory within that. It is also very easy to install and update. It is useful to be able to have such multiple versions of php in order to continue running sites using old versions of CMSes etc.

Phpmyadmin is not an issue since you can run this in it’s own directory using an earlier version of php in this case 5.5 as it won’t run on 5.6 at least the version from SCL.

---

<div class="post-metadata">

**Author:** ![Diabolico](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/d/71e660/32.png) [@Diabolico](https://forum.virtualmin.com/u/Diabolico)\
**Post date:** [March 2, 2017, 6:14pm UTC](https://forum.virtualmin.com/t/software-collections-php-7-mcrpyt-library-not-available/55563/7 "2017-03-02T18:14:26Z")

</div>

phpMyAdmin doesnt have any problem to run on PHP5.6 as i have it right now running on my Virtualmin test server.

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [April 30, 2020, 6:07am UTC](https://forum.virtualmin.com/t/software-collections-php-7-mcrpyt-library-not-available/55563/8 "2020-04-30T06:07:36Z")

</div>

Closed on April 30, 2020, 6:07am UTC


