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
#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 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
If you are working with Ubuntu, use this install command,
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