LDAP user and group backend greyed out

I am running CentOS Linux release 7.4.1708 (Core) with Nextcloud 12.0.7.

I am trying to enable the LDAP user and group backup but it is greyed out. I tried installing php-ldap but I get:

–> Running transaction check
β€”> Package php-ldap.x86_64 0:5.4.16-43.el7_4.1 will be installed
–> Processing Dependency: php-common(x86-64) = 5.4.16-43.el7_4.1 for package: php-ldap-5.4.16-43.el7_4.1.x86_64
–> Running transaction check
β€”> Package php-common.x86_64 0:5.4.16-43.el7_4.1 will be installed
–> Processing Dependency: libzip.so.2()(64bit) for package: php-common-5.4.16-43.el7_4.1.x86_64
–> Running transaction check
β€”> Package libzip.x86_64 0:0.10.1-8.el7 will be installed
–> Processing Conflict: php70w-common-7.0.29-1.w7.x86_64 conflicts php-common < 7.0
–> Finished Dependency Resolution
Error: php70w-common conflicts with php-common-5.4.16-43.el7_4.1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

Not sure what to try at this point. Any suggestions?

You need both php5.4 and php7.0? If you don’t need, I’d remove php 5.4, then you should not have any conflicts. If you need both, unfortunately, I’m not a CentOS user but I’d recommend to ask the CentOS community how to manage two php setups at the same time with their package manager.