Install imap on PHP 5.4 CentOS

General Tech Bugs & Fixes 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 

So, i tried installing IMAP with yum install php5-imap but package cannot be found:

[root@nv-datacenter ~]# yum install php5-imap^C
[root@nv-datacenter ~]# yum install php5-imap
Loaded plugins: fastestmirror, priorities
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: ftp.usf.edu
 * epel: mirror.steadfast.net
 * extras: mirror.5ninesolutions.com
 * remi-safe: mirrors.mediatemple.net
 * rpmforge: mirror.team-cymru.org
 * updates: mirrors.centarra.com
No package php5-imap available.
Error: Nothing to do

When using yum install php-imap command, I get php version mistmach error:

[root@nv-datacenter ~]# yum install php-imap
Loaded plugins: fastestmirror, priorities
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirrors.liquidweb.com
 * epel: mirror.steadfast.net
 * extras: mirror.5ninesolutions.com
 * remi-safe: mirrors.mediatemple.net
 * rpmforge: mirror.team-cymru.org
 * updates: mirrors.centarra.com
Resolving Dependencies
--> Running transaction check
---> Package php-imap.x86_64 0:5.3.3-46.el6_6 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-46.el6_6 for package: php-imap-5.3.3-46.el6_6.x86_64
...
Error: Package: php-imap-5.3.3-46.el6_6.x86_64 (updates)
           Requires: php-common(x86-64) = 5.3.3-46.el6_6
           Installed: php-common-5.4.43-1.el6.remi.x86_64 (@remi)
               php-common(x86-64) = 5.4.43-1.el6.remi
           Available: php-common-5.3.3-40.el6_6.x86_64 (base)
               php-common(x86-64) = 5.3.3-40.el6_6
           Available: php-common-5.3.3-46.el6_6.x86_64 (updates)
               php-common(x86-64) = 5.3.3-46.el6_6
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

My configuration is: Centos 6.6, Nginx 1.8.0 with php-fpm, PHP version 5.4.43,

Any suggestions?

profilepic.png
manpreet 2 years ago

 

Try this one;

yum install php54-php-imap searching from my x64 box I get the following;

Available Packages Name : php54-php-imap Arch : x86_64 Version : 5.4.44 Release : 1.el6.remi Size : 58 k Repo : remi Summary : A module for PHP applications that use IMAP URL : http://www.php.net/ License : PHP Description : The php54-php-imap module will add IMAP (Internet Message Access Protocol) : support to PHP. IMAP is a protocol for retrieving and uploading e-mail : messages on mail servers. PHP is an HTML-embedded scripting language.

Remi use the following names for there php versions;

php54-php-foo - php 5.4 php55-php-foo - php 5.5 php56-php-foo - php 5.6

Where foo is the package name you want.

Having seen your comment the direct download can be found here One other thing to check - /etc/yum.repos.d/remi.repo (Or whatever your version is called) and check to see if you have the following lines and what's enabled.

[remi-php56]
name=Les RPM de remi de PHP 5.6 pour Enterprise Linux $releasever - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/$releasever/php56/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/$releasever/php56/mirror
# WARNING: If you enable this repository, you must also enable "remi"
enabled=1
gpgcheck=1
gpgkey=http://rpms.famillecollet.com/RPM-GPG-KEY-remi

0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.