I’m trying to download email attachments via PHP IMAP but imap_open() results in “undefined”. I don’t find anything with “grep imap /etc/php.d” so I try to install but
yum install php-imap Loaded plugins: fastestmirror, versionlock Loading mirror speeds from cached hostfile Resolving Dependencies --> Running transaction check ---> Package php-imap.x86_64 0:5.4.16-9.el7 will be installed --> Processing Dependency: php(zend-abi) = 20100525-64 for package: php-imap-5.4.16-9.el7.x86_64 --> Processing Dependency: php(api) = 20100412-64 for package: php-imap-5.4.16-9.el7.x86_64 --> Processing Dependency: libc-client.so.2007()(64bit) for package: php-imap-5.4.16-9.el7.x86_64 --> Running transaction check ---> Package libc-client.x86_64 0:2007f-16.el7 will be installed ---> Package php-common.x86_64 0:5.4.16-48.el7 will be installed --> Processing Dependency: libzip.so.2()(64bit) for package: php-common-5.4.16-48.el7.x86_64 --> Running transaction check ---> Package libzip.x86_64 0:0.10.1-8.el7 will be installed --> Processing Conflict: php56w-common-5.6.40-1.sng7.x86_64 conflicts php-common < 5.6 --> Finished Dependency Resolution Error: php56w-common conflicts with php-common-5.4.16-48.el7.x86_64 You could try using --skip-broken to work around the problem
Adding “–skip-broken” does not change result. My php version is 5.6.40 so I don’t know why I have php-common-5.4.16-48 instead of php56w-common anyway.
Is it safe to uninstall php-common-5.4.16-48 and install php56w-common?
Can anyone tell me how to get IMAP installed?
Thanks!