I'm trying to install/enable IMAP on an elastic beanstalk environment. I got the IMAP module installed as shown by the command below (when executed by SSHing into the ec2 instance).
$ php -m | grep imap
PHP Warning: Module 'imap' already loaded in Unknown on line 0 imap
Not sure if the warning has anything to do with the error I'm seeing, but either way, IMAP is being loaded.
However when I call imap_open()
in my PHP code, I get this error:
PHP Fatal error: Uncaught Error: Call to undefined function imap_open()
I looked at this answer, but it's almost 10 years old, and looking at other questions (here and here) this isn't as simple as adding a line to a php.ini
file on Linux.