Activities

September 2010
M T W T F S S
« Aug   Oct »
 12345
6789101112
13141516171819
20212223242526
27282930  

Enabling IMAP extension in PHP

My server configuration is,

Centos 5.4 with PHP 5.2.12 (compiled manually)

The steps you need to do is go through the source tree which has compiled previously

#yum install libc-client-devel
#cd /home/installation/php-5.2.12/ext/imap
#phpize
# ./configure --with-imap  --with-kerberos  --with-imap-ssl


If you haven’t installed the libc-client library before, you will get a similar error as below,

checking for IMAP SSL support... yes
checking for utf8_mime2text signature... new
checking for U8T_CANONICAL... no
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.

[root@rc-158 imap]# make
[root@rc-158 imap]# make install
[root@rc-158 imap]# vi /etc/php.ini Add the extension entry in it
extension=imap.so
[root@rc-158 imap]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]

Which can be solved by installing the following yum package

#yum install libc-client-devel

If you are working with Ubuntu, use this install command,

$sudo apt-get install libc-client2007e-dev

You may also use this config parameter during the php compilation time.
“–with-imap –with-kerberos –with-imap-ssl”

Verifying by
#php -m | grep “imap” will returns
imap

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>