©
Dieses Dokument verwendet PHP-Handbuch für chinesische Websites Freigeben
[#1] jevon at jevon dot org [2015-01-06 03:27:33]
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
[#2] panchtatvam at gmail dot com [2014-05-23 07:25:00]
For Fedora 20
===========
Install php-imap:
sudo yum install php-imap
Then restart httpd :
sudo service httpd restart
[#3] Robin Scurr [2014-02-05 17:20:41]
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.
[#4] marcin at koziarz dot pl [2013-05-13 07:25:38]
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.
[#5] dale3h [2009-01-13 01:31:47]
In CentOS:
yum install php-imap
Works like a charm!
[#6] LZZ [2008-12-08 10:11:14]
On Gentoo:
edit /etc/make.conf and include imap to the USE flags,
then run
emerge php
[#7] dlaplant at integresystems dot com [2008-09-02 13:24:14]
For rhel4 add the libc-client-devel package
[#8] clay at scvalleypopcorn dot com [2008-08-02 12:38:12]
apt-get install php5-imap
Works well also.... Enjoy
[#9] Josecito [2008-05-27 19:21:40]
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).