Installing/Configuring

Содержание

Требования

This extension requires the c-client library to be installed. Grab the latest version from » ftp://ftp.cac.washington.edu/imap/ and compile it.

It's important that you do not copy the IMAP source files directly into the system include directory as there may be conflicts. Instead, create a new directory inside the system include directory, such as /usr/local/imap-2000b/ (location and name depend on your setup and IMAP version), and inside this new directory create additional directories named lib/ and include/. From the c-client directory from your IMAP source tree, copy all the *.h files into include/ and all the *.c files into lib/. Additionally when you compiled IMAP, a file named c-client.a was created. Also put this in the lib/ directory but rename it as libc-client.a.

Замечание: To build the c-client library with SSL or/and Kerberos support read the docs supplied with the package.

Замечание: In Mandrake Linux, the IMAP library (libc-client.a) is compiled without Kerberos support. A separate version with SSL (client-PHP4.a) is installed. The library must be recompiled in order to add Kerberos support.

Коментарии

Автор:
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).
2008-05-27 22:21:40
http://php5.kiev.ua/manual/ru/imap.setup.html
apt-get install php5-imap

Works well also.... Enjoy
2008-08-02 15:38:12
http://php5.kiev.ua/manual/ru/imap.setup.html
For rhel4 add the libc-client-devel package
2008-09-02 16:24:14
http://php5.kiev.ua/manual/ru/imap.setup.html
Автор:
On Gentoo:

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

emerge php
2008-12-08 12:11:14
http://php5.kiev.ua/manual/ru/imap.setup.html
Автор:
In CentOS:

yum install php-imap

Works like a charm!
2009-01-13 03:31:47
http://php5.kiev.ua/manual/ru/imap.setup.html
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.
2013-05-13 10:25:38
http://php5.kiev.ua/manual/ru/imap.setup.html
Автор:
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.
2014-02-05 19:20:41
http://php5.kiev.ua/manual/ru/imap.setup.html
For Fedora 20
===========

Install php-imap:
sudo yum install php-imap

Then restart httpd :
sudo service httpd restart
2014-05-23 10:25:00
http://php5.kiev.ua/manual/ru/imap.setup.html
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
2015-01-06 05:27:33
http://php5.kiev.ua/manual/ru/imap.setup.html
Ubuntu 18.04

sudo apt-get install php-imap
2019-04-23 03:48:14
http://php5.kiev.ua/manual/ru/imap.setup.html
Автор:
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
---------------------------
2021-01-08 14:20:26
http://php5.kiev.ua/manual/ru/imap.setup.html

    Поддержать сайт на родительском проекте КГБ