
Originally Posted by
roblaus
install the imap libraries and enable them in php.ini. If I am not mistaken the package on Debian/Ubuntu is php5-imap and the file to be enabled in php.ini is imap.so


Okidoki!, I also have noticed a lot of users wanting to know how to enable the imap libraries as well, so here is what I discovered earlier while waiting for a reply to my post, and as luck would have it the reply confirmed my discovery was correct. And thanks to Roblaus for unknowingly confirming my results.
Here is yet another possible solution for those who are getting the imap warnings.
Inbound Email Disabled
Warnings: Inbound Email cannot function without the IMAP c-client libraries enabled/compiled with the PHP module. Please contact your administrator to resolve this issue. <--That would be me, unfortunately, and why I am here.
If you are running:
Ubuntu 9.04 (Probably will work on most recent debian linux kernel releases)
Apache2
PHP Version 5.2.6
MySQL 5.0.75
This may work for you, I did a little experimenting and this fixed it for me.
Before you start, make sure you do have the imap libraries installed and then this is how to enable them in the php.ini .
1) Open a terminal window
2) Type php -m | grep imap
3) If imap shows, then copy your php.ini [might be /etc/php5/apache2/php.ini ] to your home directory for editing.
Warning Warning: Make a copy of your php.ini and copy to your home directory. Never Ever edit the ini file directly. Mess it up, you can really mess up!
4) Now change to your home directory and copy the php.ini to php.ini.original. Do not rename, copy, this is your backup copy of the original.
5) Now edit with your favourite text editor, you will have to sudo the edit since it will most likely belong to root or the web server.
6) Scroll down until you get to Dynamic Extensions and just below the description you will add the following
extension=imap.so
7) Save, then quit the editor.
8) Now copy your new php.ini back to where you got it and ok the overwrite.
You will probably have to do something like this: sudo cp -i ~/php.ini /etc/php5/apache2/php.ini
9) Now restart apache2 gracefully, something like this:sudo /etc/init.d/apache2 restart
10) Now login to SugarCRM as the admin and click on Monitor New Mail Account and if all is right as rain you should now see Inbound Email Setup:
11) If you running as root and not a user, get up, get a big hammer, strike self directly in the middle of forehead repeatedly. Never Ever run as root, always as user! That is what sudo is for, those times when you need root permissions to do an action like restarting the webserver, and then the permission expires shortly after the action completes. Can't accidently wipeout critical files that way.
Hope this helps.
Cheers!
Bookmarks