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
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
On Gentoo:
edit /etc/make.conf and include imap to the USE flags,
then run
emerge php
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).
For Fedora 20
===========
Install php-imap:
sudo yum install php-imap
Then restart httpd :
sudo service httpd restart
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.