3

I'm running a dedicated server with CentOS 7 64bit, here is the output when trying to install IMAP:

yum install php-imap  
Loaded plugins: fastestmirror  
Loading mirror speeds from cached hostfile  
 * base: ftp.ciril.fr  
 * extras: ftp.ciril.fr  
 * updates: ftp.ciril.fr  
No package php-imap available.  
Error: Nothing to do    

Also the same when disabling exclusions:

sudo yum install --disableexcludes=all php-imap
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.ciril.fr
 * extras: ftp.ciril.fr
 * updates: ftp.ciril.fr
No package php-imap available.
Error: Nothing to do
  • I typically run sudo yum list *imap* to see what there is to install. This yielded 'php56-php-imap.x86_64' this time, but is helpful for all kinds of installs, to see if I need to add a repo or just get the name right. – rncrtr Jun 19 '15 at 21:35
6

Just run the following commands

yum install epel-release*

yum install php-imap*

| improve this answer | |
  • 1
    This needs explanation. And you also need quoting in those commands. – kasperd Dec 17 '15 at 11:05
  • There's nothing wrong with this answer. It's pretty self-explaining. You must install EPEL repository, then you will be able to get php-imap package. It's working here like a charm. – Junior Mayhé Jan 24 '17 at 18:31
  • The yum -y install epel-release command worked perfectly for me. (CentOS 7) – Eduardo Lucio May 14 '18 at 18:22
3

It's in the epel repo. See http://pkgs.org for a search function for such things.

| improve this answer | |
0

here was what I did to install PHP7.0 IMAP Extension on Centos 7.1

I downloaded setup-ius.sh from here: https://gist.github.com/SunDi3yansyah/3edc2370268c335362c896cd2d1094ad

Then, install it using command:

yum install php70u-imap

And it worked! Good luck!

| improve this answer | |
  • 1
    This also requires switching PHP to the IUS builds, which many people will be unwilling to do. – Michael Hampton Dec 8 '18 at 14:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.