1

Topic: PHP7.2 confliction

==== Required information ====
- iRedMail version (check /etc/iredmail-release): iRedMail-0.9.5-1
- Linux/BSD distribution name and version:   CentOS Linux release 7.2.1511 (Core)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):   MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:


i have an existing PHP 7.2 installed on the server. the installer complains about the confliction between the existing one and the one iRedAdmin installs.


[root@webserver-test iRedMail-0.9.5-1]# rpm -qa | grep php
php70w-7.0.7-1.w7.x86_64
php70w-cli-7.0.7-1.w7.x86_64
php70w-opcache-7.0.7-1.w7.x86_64
php70w-common-7.0.7-1.w7.x86_64
[root@webserver-test iRedMail-0.9.5-1]#


--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-106.el7_2.6.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.17-106.el7_2.6.x86_64
---> Package pyparsing.noarch 0:1.5.6-9.el7 will be installed
--> Running transaction check
---> Package kernel-headers.x86_64 0:3.10.0-327.18.2.el7 will be installed
--> Processing Conflict: php70w-common-7.0.7-1.w7.x86_64 conflicts php-common < 5.5.0
--> Finished Dependency Resolution
Error: php70w-common conflicts with php-common-5.4.16-36.1.el7_2.1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
<< ERROR >> Installation failed, please check the terminal output.
<< ERROR >> If you're not sure what the problem is, try to get help in iRedMail
<< ERROR >> forum: http://www.iredmail.org/forum/
[root@webserver-test iRedMail-0.9.5-1]#
====

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: PHP7.2 confliction

You have to either remove php package names in 'functions/packages.sh', or change their names to the one matches your php72.

the code lines are:

    # PHP
    if [ X"${DISTRO}" == X'RHEL' ]; then
        ALL_PKGS="${ALL_PKGS} php-common php-gd php-xml php-mysql php-ldap php-pgsql php-imap php-mbstring php-pecl-apc php-intl php-mcrypt"

        [ X"${WEB_SERVER_IS_APACHE}" == X'YES' ] && ALL_PKGS="${ALL_PKGS} php"

3

Re: PHP7.2 confliction

I updated the packages.sh as below but still got error:


ALL_PKGS="${ALL_PKGS} php70u-common-7.0.7-1.ius.centos7.x86_64 php70u-cli-7.0.7-1.ius.centos7.x86_64 php70u-fpm-7.0.7-1.ius.centos7.x86_64 php70u-mysqlnd-7.0.7-1.ius.centos7.x86_64 php70u-fpm-nginx-7.0.7-1.ius.centos7.noarch"



--> Running transaction check
---> Package kernel-headers.x86_64 0:3.10.0-327.18.2.el7 will be installed
--> Processing Conflict: php70u-common-7.0.7-1.ius.centos7.x86_64 conflicts php-common < 7.0
--> Processing Conflict: php70u-fpm-7.0.7-1.ius.centos7.x86_64 conflicts php-fpm < 7.0
--> Finished Dependency Resolution
Error: php70u-common conflicts with php-common-5.4.16-36.1.el7_2.1.x86_64
Error: php70u-fpm conflicts with php-fpm-5.4.16-36.1.el7_2.1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
<< ERROR >> Installation failed, please check the terminal output.
<< ERROR >> If you're not sure what the problem is, try to get help in iRedMail
<< ERROR >> forum: http://www.iredmail.org/forum/
[root@webser-test iRedMail-0.9.5-1]#

4

Re: PHP7.2 confliction

condescendent wrote:

--> Processing Conflict: php70u-fpm-7.0.7-1.ius.centos7.x86_64 conflicts php-fpm < 7.0

Replace 'php-fpm' in functions/packages.sh.

5

Re: PHP7.2 confliction

still has error:



** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
2:postfix-2.10.1-6.el7.x86_64 has missing requires of libmysqlclient.so.18()(64bit)
2:postfix-2.10.1-6.el7.x86_64 has missing requires of libmysqlclient.so.18(libmysqlclient_18)(64bit)
<< ERROR >> Installation failed, please check the terminal output.
<< ERROR >> If you're not sure what the problem is, try to get help in iRedMail
<< ERROR >> forum: http://www.iredmail.org/forum/
[root@webser-test iRedMail-0.9.5-1]# yum search libmysql*
Loaded plugins: fastestmirror, replace
Loading mirror speeds from cached hostfile
* base: linux.cc.lehigh.edu

6

Re: PHP7.2 confliction

libmysqlclient.so.18(libmysqlclient_18)(64bit)
           Available: 1:mariadb-libs-5.5.47-1.el7_2.x86_64 (updates)
               libmysqlclient.so.18(libmysqlclient_18)(64bit)
           Available: 1:mariadb100u-libs-10.0.25-1.ius.centos7.x86_64 (ius)
               libmysqlclient.so.18(libmysqlclient_18)(64bit)
           Installing: 1:mariadb101u-libs-10.1.14-2.ius.centos7.x86_64 (ius)
               libmysqlclient.so.18(libmysqlclient_18)(64bit)
Error: Package: 1:mariadb-server-5.5.47-1.el7_2.x86_64 (updates)
           Requires: mariadb-libs(x86-64) = 1:5.5.47-1.el7_2
           Available: 1:mariadb-libs-5.5.44-2.el7.centos.x86_64 (base)
               mariadb-libs(x86-64) = 1:5.5.44-2.el7.centos
           Available: 1:mariadb100u-libs-10.0.25-1.ius.centos7.x86_64 (ius)
               mariadb-libs(x86-64) = 1:10.0.25-1.ius.centos7
           Available: 1:mariadb101u-libs-10.1.14-2.ius.centos7.x86_64 (ius)
               mariadb-libs(x86-64) = 1:10.1.14-2.ius.centos7
           Available: 1:mariadb-libs-5.5.47-1.el7_2.i686 (updates)
              ~mariadb-libs(x86-32) = 1:5.5.47-1.el7_2
Error: Package: 1:mariadb-server-5.5.47-1.el7_2.x86_64 (updates)
           Requires: mariadb-libs(x86-64) = 1:5.5.47-1.el7_2
           Available: 1:mariadb-libs-5.5.44-2.el7.centos.x86_64 (base)
               mariadb-libs(x86-64) = 1:5.5.44-2.el7.centos
           Available: 1:mariadb100u-libs-10.0.25-1.ius.centos7.x86_64 (ius)
               mariadb-libs(x86-64) = 1:10.0.25-1.ius.centos7
           Installing: 1:mariadb101u-libs-10.1.14-2.ius.centos7.x86_64 (ius)
               mariadb-libs(x86-64) = 1:10.1.14-2.ius.centos7
           Available: 1:mariadb-libs-5.5.47-1.el7_2.i686 (updates)
              ~mariadb-libs(x86-32) = 1:5.5.47-1.el7_2
You could try using --skip-broken to work around the problem
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
2:postfix-2.10.1-6.el7.x86_64 has missing requires of libmysqlclient.so.18()(64bit)
2:postfix-2.10.1-6.el7.x86_64 has missing requires of libmysqlclient.so.18(libmysqlclient_18)(64bit)
[root@webser-test iRedMail-0.9.5-1]# yum whatprovides */libmysqlclient.so.18 -q

7

Re: PHP7.2 confliction

condescendent wrote:

           Available: 1:mariadb100u-libs-10.0.25-1.ius.centos7.x86_64 (ius)

iRedMail works with official CentOS yum repositories and EPEL repo, obviously there's conflict with "ius" repo.

As clearly mentioned in iRedMail installation guide, you have to disable all third-party yum repositories for installing iRedMail.