IMAP support install

webaltern

Verified User
Joined
Feb 10, 2008
Messages
175
Location
Québec, Canada
Hello,

i try to install imap support to PHP 5.3.x(suphp) with custombuild 2.0. But it seem's that CB don't take my custom configure.php53 or configure.suphp in the custom directory.

Here is my ./build used_configs
Apache configuration file: /usr/local/directadmin/custombuild/configure/ap2/configure.apache
suPHP configuration file: /usr/local/directadmin/custombuild/custom/suphp/configure.suphp
suPHP configuration file: /usr/local/directadmin/custombuild/custom/suphp/configure.suphp
PHP (default) configuration file: /usr/local/directadmin/custombuild/custom/suphp/configure.php53
PureFTPD configuration file: /usr/local/directadmin/custombuild/configure/pureftpd/configure.pureftpd
Dovecot configuration file: /usr/local/directadmin/custombuild/configure/dovecot/configure.dovecot

my custom configure.suphp and configure.php53 (as I don't know witch one will be the good one) looks like:

#!/bin/sh
./configure \
--with-apxs2 \
--with-config-file-scan-dir=/usr/local/lib/php.conf.d \
--with-curl=/usr/local/lib \
--with-gd \
--enable-gd-native-ttf \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-freetype-dir=/usr/local/lib \
--with-libxml-dir=/usr/local/lib \
--with-kerberos \
--with-openssl \
--with-mcrypt \
--with-mhash \
--with-mysql=mysqlnd \
--with-mysql-sock=/var/lib/mysql/mysql.sock \
--with-mysqli=mysqlnd \
--with-pcre-regex=/usr/local \
--with-pdo-mysql=mysqlnd \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xsl \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--enable-zip \
--with-iconv=/usr/local \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-sockets \
--enable-soap \
--enable-mbstring \
--with-icu-dir=/usr/local/icu \
--enable-intl \
--with-imap=/usr/lib/dovecot/imap \
--with-imap-ssl

then i rebuild php ./build php n


but still no IMAP support on the phpinfo... Also in the section Configure Command of the phpInfo those lines seems missing:
--with-imap=/usr/lib/dovecot/imap \
--with-imap-ssl



Did anybody have a clue how to solve this problem?

Sorry for my bad english, thats not my primary language :)

thanx
 
Code:
cd /usr/local/directadmin/custombuild
./build update
./build clean
./build php n
 
Try editing suphp/configure.php5

Do you see imap if you do:

Code:
php -m

Did you restart apache after upgrading php?
 
Last edited:
here is how i solved my problem:

- I removed the custom directory (rm -rf /usr/local/directadmin/custombuild/custom)

- I added those lines to /usr/local/directadmin/custombuild/configure/suphp/configure.php53
--with-imap=/usr/lib/dovecot/imap \
--with-imap-ssl

- Protect the file from overwriting
chattr +i /usr/local/directadmin/custombuild/configure/suphp/configure.php53

./build update
./build clean
./build php n

now i have imap working correctly

imap
IMAP c-Client Version 2004
SSL Support enabled
Kerberos Support enabled


Probably a bug in custombuild that don't take care of the configure.php53 in the custom directory??
 
Last edited:
Back
Top