Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imap support #32

Closed
clarkk opened this issue May 18, 2016 · 4 comments
Closed

imap support #32

clarkk opened this issue May 18, 2016 · 4 comments

Comments

@clarkk
Copy link

clarkk commented May 18, 2016

How to build PHP with IMAP support?

The extension is not under /usr/local/php7/include/php/ext

@kasparsd
Copy link
Owner

Should be similar to how it's done for Memcached, for example.

@clarkk
Copy link
Author

clarkk commented May 19, 2016

but what about the dependencies?!

@kasparsd
Copy link
Owner

@clarkk Actually, you just need to edit the build configuration in build.sh, see http://php.net/manual/en/imap.installation.php

@clarkk
Copy link
Author

clarkk commented May 19, 2016

Solution

https://forum.directadmin.com/showthread.php?t=45434
http://www.brighterlamp.com/2012/12/how-to-compile-php-with-imap-support/

apt-get install libpam0g-dev
cd /usr/local && wget ftp://ftp.cac.washington.edu/imap/imap-2007f.tar.gz && tar -xvf imap-2007f.tar.gz && cd imap-2007f
make lr5 && mkdir lib && mkdir include
cp c-client/*.c lib/ && cp c-client/*.h include/ && cp c-client/c-client.a lib/libc-client.a

Add to build.sh

--with-imap-ssl=/usr/local/imap-2007f \
--with-imap=/usr/local/imap-2007f \

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants