Error: IMAP is not included in your PHP installation, cannot continue

I have PHPlist 3.4.3 installed and running. However I get “error: IMAP is not included in your PHP installation, cannot continue” when I click “Process Bounces”.

I have IMAP installed and running on my Centos server:
[root@host ~]# netstat -a | fgrep imap
tcp 0 0 0.0.0.0:imap 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:imaps 0.0.0.0:* LISTEN

My config.php settings
$message_envelope = ‘bounces@mydomain.org’;
$bounce_protocol = ‘pop’;
define(‘MANUALLY_PROCESS_BOUNCES’, 1);
$bounce_mailbox_host = 'mydomain.org;
$bounce_mailbox_user = ‘bounces@mydomain.org’;

// the “port” is the remote port of the connection to retrieve the emails
// the default should be fine but if it doesn’t work, you can try the second
// one. To do that, add a # before the first line and take off the one before the
// second line
$bounce_mailbox_port = ‘110/pop3/notls’;
//$bounce_mailbox_port = “110/pop3”;

Any suggestions?

“error: IMAP is not included in your PHP installation, cannot continue”
You should include IMAP extension to your php.ini (see the “Dynamic Extensions” section).
.

1 Like

Welcome to the phpList forum @gscerb!

@duke nailed the answer, I believe.

The answer is correct.
I added “extension=imap.so” to my php.ini file The error message went away.

However, I have another Centos 7 server running the same setup.
php-imap is installed. I checked phpinfo.php for the loaded php.ini, added the extension and restarted apache2. But I still get the same error message.
Is there some other place I need to check?

So php.ini on server 2 says the extension is loaded?

@gscerb if the php imap extension is installed then there will be a section within phpinfo
image

If you enable Common plugin then you can get the phpinfo output through menu item Config > phpinfo.

Thanks! You pointed me in the right direction.
The php-imap extension was not installed.
I was confusing the installed imap module with the missing imap extension.

1 Like

Hi, just wondering if I could get some pointers please? Let me know if I should post this else where.

At the Process Bounces page I receive the error:
Error: IMAP is not included in your PHP installation, cannot continue
Check out http://www.php.net/manual/en/ref.imap.php

PHPinfo(); does not give me the output shown above by @duncanc

php -m does not show the imap module.

php -v
PHP 5.6.37-1+ubuntu14.04.1+deb.sury.org+1 (cli)
Copyright © 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright © 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright © 1999-2016, by Zend Technologies

I am running Ubuntu 14.04

PHP5.6 and 7.0 are installed.
phpinfo(); says that I am using
Loaded Configuration File /etc/php/5.6/apache2/php.ini

My install procedure was
apt-get install php5-imap
php5enmod imap
service apache2 restart

To
/etc/php/5.6/apache2/php.ini
I added
extension=imap.so

For some reason I still receive the initial error from PHPlist
I am running PHPlist v3.3.6

I have the same error message and trying to troublshoot this I get the following error when clicking phpino:

Forbidden
You don’t have permission to access this resource.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Can anyonoe offer some clues?