Can not get php imap working

Dougy

Verified User
Joined
Sep 1, 2010
Messages
127
I've tried EVERYTHING I can think of.

I created /custombuild/custom/suphp/configure.php5, modified the /custombuild/configure/suphp/configure.php5 to no success.

[root@directadmin custombuild]# grep -R "with-imap" php-5.2.14|grep Makefile
php-5.2.14/Makefile:CONFIGURE_COMMAND = './configure' '--with-apxs2' '--with-curl=/usr/local/lib' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gettext' '--with-jpeg-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib' '--with-openssl' '--with-mcrypt' '--with-mhash' '--with-kerberos' '--with-mysql=/usr' '--with-mysqli=/usr/bin/mysql_config' '--with-pcre-regex=/usr/local' '--with-pdo-mysql=/usr' '--with-pear' '--with-png-dir=/usr/local/lib' '--with-zlib' '--with-zlib-dir=/usr/local/lib' '--enable-zip' '--with-iconv=/usr/local' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-mbstring' '--with-imap=/usr/lib/dovecot/imap' '--with-imap-ssl'

php-5.2.14/Makefile:CONFIGURE_OPTIONS = '--with-apxs2' '--with-curl=/usr/local/lib' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gettext' '--with-jpeg-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib' '--with-openssl' '--with-mcrypt' '--with-mhash' '--with-kerberos' '--with-mysql=/usr' '--with-mysqli=/usr/bin/mysql_config' '--with-pcre-regex=/usr/local' '--with-pdo-mysql=/usr' '--with-pear' '--with-png-dir=/usr/local/lib' '--with-zlib' '--with-zlib-dir=/usr/local/lib' '--enable-zip' '--with-iconv=/usr/local' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-mbstring' '--with-imap=/usr/lib/dovecot/imap' '--with-imap-ssl'

[root@directadmin custombuild]# php -i|grep Configure
Configure Command => './configure' '--prefix=/usr/local/php5' '--enable-force-cgi-redirect' '--enable-fastcgi' '--with-config-file-path=/usr/local/etc/php5/cgi' '--with-curl=/usr/local/lib' '--with-gd' '--with-gettext' '--with-jpeg-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib' '--with-kerberos' '--with-openssl' '--with-mcrypt' '--with-mhash' '--with-mysql=/usr' '--with-mysqli=/usr/bin/mysql_config' '--with-pcre-regex=/usr/local' '--with-pdo-mysql=/usr' '--with-pear' '--with-png-dir=/usr/local/lib' '--with-zlib' '--with-zlib-dir=/usr/local/lib' '--enable-zip' '--enable-gd-native-ttf' '--with-iconv=/usr/local' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-mbstring'

It's just not there! I can't figure it out for the life of me.

I tried the top 3 steps in http://www.directadmin.com/imap.txt to no avail also.
 
Download WinSCP to gain access to your server. It is much easier with such applications for such changes.

What error message you get during the installation?
 
Last edited:
Which OS are you using, if you have CentOS/Fedora you can send me a PM with the login details (root SSH). I can install it within a few minutes.

Download WinSCP to gain access to your server. It is much easier with such applications for such changes.
I never used WinSCP when installing PHP IMAP. So I don't think its needed for this.
 
I never used WinSCP when installing PHP IMAP. So I don't think its needed for this.

Ew. WinSCP for server stuff? Barf.

That said, stupid me I copied a mod_php config for suphp.. *facepalm*.
 
Offtopic but to complete the thread:

If ISOS6 had been more generalized in his statement and had written:

You might want to use SCP to upload files to your server instead of ftp

I might have agreed with him; we would use SCP to upload to our servers.

WinSCP, for those who don't know, is simply a MSWindows-based SCP client for your MSWindows desktop; it works similarly to FTP, though it's strictly SCP and requires shell access to all levels at which you're uploading.

Jeff
 
I meant to have a better overview of what you are doing, so it is recommended a program like WinSCP. So you change the files much faster and easier.

Have not said that he needs WinSCP for PHP with IMAP.
 
Back
Top