php4-imap module nog working..

Lode

Verified User
Joined
Oct 21, 2005
Messages
11
For a add-on to SugarCRM I need the php module, php4-imap.
I first thought to install just via putty, but heard that I should do it through DA. So I searched the KB and found this: Adding custom modues to php.

I've editted the configure.php as described there, did
# ./build clean
and
# ./build php
and then restarted apache from DA (because our OS, Debian, isn't listed there).

But the SugarCRM add-on still gives me an error:
"imap support not available in your PHP installation - please check your php.ini for 'php_imap' extension."

Ok, also done that. I first checked via a simpel phpinfo() script what that said.
The word imap only showed up twice.
1) In the configure command, pretty logic because I just added it.
2) In the Apache -> Loaded Modules

Then I checked the php.ini, there is only one occurance of the word imap. It is within a list of dll files, not realy interesting for debian I guess.

I don't have a good understanding of linux but I wouldn't know of anything else that I could have overseen.
Does anyone know what is wrong here? What I do wrong? And what can be done to get it working?
Many thanks in advance!
 
Edit configure.php in /usr/local/directadmin/customapache

add this line (after the last "with"):

--with-imap \

Then recompile PHP

# ./build php
 
I see. First I had
--with-php4-imap
at the end of that file.

When I put
--with-imap \
after the last --with, the # ./build php gives an error..

Code:
checking for IMAP support... yes
checking for IMAP Kerberos support... yes
checking for IMAP SSL support... no
checking for pam_start in -lpam... no
checking for crypt in -lcrypt... yes
configure: error: Cannot find rfc822.h. Please check your c-client installation.

*** There was an error while trying to configure php. Check the configure.php file

Maybe I should add
--with-php4-imap
instead of without the -php4? Thats the official php module name.

Would it be useful (and could it do any harm) to post my phpinfo() location and the full text in the configure.php?
 
Lode said:
Maybe I should add
--with-php4-imap
instead of without the -php4? Thats the official php module name.
Ok, tested that one too. Not working again.

So in the configure.php
--with-php4-imap (at the end of the file)
--with-php4-imap \ (after the last --with)
and
--with-imap \ (after the last --with)
are not working..

So I suppose the problem lies somewhere else. Anyone has an idea on where it is?
 
You need the c-client stuff to build imap support in php. There are a ton of posts on the forum about this. Do a search here for "php and imap".
 
Back
Top