How to compile IMAP in PHP71 (FreeBSD, PHP-fpm, NGiNX)

aionets

Verified User
Joined
Jul 19, 2018
Messages
20
Hello,

I would need help desperately regarding compiling the imap php71. searched alot here in this forum and on the net but I have found no solutions.

I would appreciate if you tell me that how I would be able to compile imap in php71 in FreeBSD

Here are my general server scpes : FreeBSD, PHP71, PHP-fpm and NGiNX.

Thank you in advanced.
 
I guess this will do it:

1. Install cclient libraries:

# cd /usr/ports/mail/cclient
# make install

2. Edit the configuration file of php-fpm to compile with imap support:

#cd /usr/local/directadmin/custombuild/configure/fpm

edit configure.php71 and add:

--with-imap \
--with-imap-ssl

3. Rebuild php:

# cd /usr/local/directadmin/custombuild
# ./build php n
 
Back
Top