add a note add a note

User Contributed Notes 11 notes

up
1
Josecito
16 years ago
To install the IMAP module on Red Hat Linux Enterprise 4 (RHEL4):
- Open a terminal window
- If you're not root, become root with su
- type:
RPM -i php-imap
(RPM will download, install and resolve dependencies)
- restart your web server with:
service httpd restart

I hope this helps newbies (like me).
up
-2
jevon at jevon dot org
9 years ago
On Ubuntu 14.04+, you need to first install with apt-get:

apt-get install php5-imap

However it's not enabled by default so enable it with:

php5enmod imap
up
-1
LZZ
15 years ago
On Gentoo:

edit /etc/make.conf and include imap to the USE flags,
then run

emerge php
up
-3
dlaplant at integresystems dot com
16 years ago
For rhel4 add the libc-client-devel package
up
-4
marcin at koziarz dot pl
11 years ago
In ArchLinux, a php package provides this module, but it is disabled by default.
Simply uncomment a line (remove semicolon) in /etc/php/php.ini:

;extension=imap.so

to

extension=imap.so

and then, restart PHP.
up
-6
Robin Scurr
10 years ago
This applies to SUSE Linux

When I did "php -m" at the bash prompt, imap WAS listed as installed, however the results of <?php echo phpinfo(); ?> DID NOT have imap anywhere? All the *.ini files were processed from the \etc\php5\conf.d directory EXCEPT the imap.ini file.

I fixed this by adding to the file \etc\php5\apache2\php.ini the line:

extension=imap.so

... even though a file called imap.ini contained that same entry in \etc\php5\conf.d?

Explicitly entering the extension=imap.so in the php5.ini file fixed - you do have to restart PHP (reboot) after making the entry....

All is well now.
up
-4
panchtatvam at gmail dot com
10 years ago
For Fedora 20
===========

Install php-imap:
sudo yum install php-imap

Then restart httpd :
sudo service httpd restart
up
-6
clay at scvalleypopcorn dot com
16 years ago
apt-get install php5-imap

Works well also.... Enjoy
up
-5
Shadab Kiani
3 years ago
For CentOS

If you are using PHP 7.2, run this:
--------------------------------------
yum install sclo-php72-php-imap
--------------------------------------

Then restart Apache with this:
---------------------------
systemctl restart httpd
---------------------------
up
-3
kuz-alex at mail dot ru
5 years ago
Ubuntu 18.04

sudo apt-get install php-imap
up
-38
dale3h
15 years ago
In CentOS:

yum install php-imap

Works like a charm!
To Top