Phpldapadmin Unrecognized error number: 8192: Function mcrypt_module_open() is deprecated

@stephdl, as per title, I now get this error whilst trying to login into the webGUI of phpldapadmin. I could login a couple of days ago…

Googling the error results in several older hits

Everything fully updated, php scl set to 7.1
nethserver-phpldapadmin-0.0.5-1.ns7.sdl.noarch
Transaction ID : 60
Begin time : Wed Dec 12 14:11:03 2018
Begin rpmdb : 1238:f6ae10d7a8b24d4c2ca903b9057231b8b26141e4
End time : 14:11:52 2018 (49 seconds)
End rpmdb : 1240:90fce8054f733bf8276441081f170ef75c752779
User : root
Return-Code : Success
Command Line : install nethserver-phpldapadmin --enablerepo=stephdl
Transaction performed with:
Updated rpm-4.11.3-32.el7.x86_64 @anaconda
Updated yum-3.4.3-158.el7.centos.noarch @anaconda
Installed yum-metadata-parser-1.1.4-10.el7.x86_64 @anaconda
Updated yum-plugin-fastestmirror-1.1.31-46.el7_5.noarch @updates
Packages Altered:
Install nethserver-phpldapadmin-0.0.5-1.ns7.sdl.noarch @stephdl
Dep-Install phpldapadmin-1.2.3-10.el7.noarch @epel

AFAIK I installed nethserver-ejabberd after the last time I used phpldapadmin, but could be totally unrelated.

what is the php version you use ?

# php --version

[root@srv01 /]# php -v
PHP 5.4.16 (cli) (built: Oct 30 2018 19:30:51)
Copyright © 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright © 1998-2013 Zend Technologies

I installed your scl module and have set 71 as default.

Normally we just modify the php version for /var/www/html, not for the vhost of phpldapadmin

Yes, I thought I mention it :slight_smile:

I cannot reproduce, tested with nethserver-directory, but AFAIK it should not chzange something @LayLow

JFYI

echo '<?php phpinfo(); ?>' > /usr/share/phpldapadmin/htdocs/phpinfo.php

then go to https://IP/phpldapadmin/phpinfo.php and check the php version

1 Like

image

why… I have PHP Version 5.4.16, check phpldapadmin.conf and www.conf

Very strange on my side then…

yep for what I saw it is normal, what about if you change the php version ?

Stays at 7.1.23…

rpm -qa | grep 71

rh-php71-php-process-7.1.8-1.el7.x86_64
php71-runtime-1.0-1.el7.remi.x86_64
php71-php-pgsql-7.1.23-1.el7.remi.x86_64
php71-php-ldap-7.1.23-1.el7.remi.x86_64
rh-php71-php-json-7.1.8-1.el7.x86_64
php71-php-fpm-7.1.23-1.el7.remi.x86_64
setup-2.8.71-10.el7.noarch
rh-php71-php-fpm-7.1.8-1.el7.x86_64
php71-php-imap-7.1.23-1.el7.remi.x86_64
sclo-php71-php-imap-7.1.8-2.el7.x86_64
php71-php-pecl-zip-1.15.4-1.el7.remi.x86_64
sclo-php71-php-pecl-imagick-3.4.3-2.el7.x86_64
php71-php-process-7.1.23-1.el7.remi.x86_64
rh-php71-php-intl-7.1.8-1.el7.x86_64
php71-php-tidy-7.1.23-1.el7.remi.x86_64
php71-php-enchant-7.1.23-1.el7.remi.x86_64
perl-HTML-Parser-3.71-4.el7.x86_64
rh-php71-php-zip-7.1.8-1.el7.x86_64
sclo-php71-php-smbclient-0.9.0-2.el7.x86_64
nethserver-rh-php71-php-fpm-1.0.0-1.ns7.noarch
php71-php-json-7.1.23-1.el7.remi.x86_64
php71-php-cli-7.1.23-1.el7.remi.x86_64
rh-php71-php-gd-7.1.8-1.el7.x86_64
php71-php-mbstring-7.1.23-1.el7.remi.x86_64
php71-php-mcrypt-7.1.23-1.el7.remi.x86_64
rh-php71-runtime-1-1.el7.x86_64
sclo-php71-php-mcrypt-7.1.11-1.el7.x86_64
rh-php71-php-xml-7.1.8-1.el7.x86_64
php71-php-pear-1.10.6-1.el7.remi.noarch
rh-php71-php-common-7.1.8-1.el7.x86_64
rh-php71-php-pdo-7.1.8-1.el7.x86_64
rh-php71-php-mbstring-7.1.8-1.el7.x86_64
php71-php-bcmath-7.1.23-1.el7.remi.x86_64
rh-php71-php-pecl-apcu-5.1.8-1.el7.x86_64
rh-php71-1-1.el7.x86_64
php71-php-pdo-7.1.23-1.el7.remi.x86_64
php71-1.0-1.el7.remi.x86_64
perl-Business-ISBN-Data-20120719.001-2.el7.noarch
php71-php-gd-7.1.23-1.el7.remi.x86_64
rh-php71-php-ldap-7.1.8-1.el7.x86_64
rh-php71-php-cli-7.1.8-1.el7.x86_64
rh-php71-php-opcache-7.1.8-1.el7.x86_64
php71-php-common-7.1.23-1.el7.remi.x86_64
php71-php-xml-7.1.23-1.el7.remi.x86_64
php71-php-mysqlnd-7.1.23-1.el7.remi.x86_64
php71-php-soap-7.1.23-1.el7.remi.x86_64
rh-php71-php-pear-1.10.4-1.el7.noarch
rh-php71-php-mysqlnd-7.1.8-1.el7.x86_64

you have other php71 installed, it is not only my rpm

Correct, Nextcloud also install the rh scl version mandatory. (See other thread re 2 php 7 versions installed) But they can work alongside eachother. It has been all working fine, so I am trying to find the root cause in what I or an update did…

Even when I install nethserver-nextcloud, I cannot reproduce :-?

That is because I am an idiot!. I created a virtual host with the same domain name as the server domain… :frowning:
I removed the vhost and the version of phpinfo now shows PHP Version 5.4.16 and I can login with no issues.

Thanks for the assistance and sorry for the noise!!

1 Like