Search code examples
phpdockerdocker-composephp-7.3

Enabled IMAP on Docker but Imap are undefined?


I came around this solution 52314179 to install and enable imap on docker.

docker-php-ext-configure imap --with-kerberos --with-imap-ssl && docker-php-ext-install imap

Then the imap is installed and enabled but upon using an imap function, an error occurred.

Error: Call to undefined function imap_open()

How to fix this error?


Solution

  • maybe you forgot to restart the container.

    Check it here. Link