If you need to install php-imap on your Raspberry Pi you can easily install it.
Step 1: Update Raspberry Pi
sudo apt-get update
Step 1: Install php-imap on Raspberry Pi
sudo apt-get install php7.4-imap
Step 3: Enable IMAP on Raspberry Pi
sudo phpenmod -v 5.6 <modulename>
sudo phpenmod -v 7.1 <modulename>
(depending on version installed)
Step 4: Restart Apache on Raspberry Pi
sudo service apache2 restart
Hello
I dont know what day this post is, but currently not working on my raspberry pi4, could you help?
when type «sudo apt-get install php7-imap» or «sudo apt-get install php7.0-imap» I got the next errors:
E: Unable to locate php7-imap package
E: Could not find any package with regular expression “php7.0-imap”
Hi Jose.
What php7 version are you using?
You should install IMAP ext for your PHP version; so if running PHP 7.4, try running
sudo apt-get install php7.4-imap
.I’ve updated the article to reflect this.
Let me know if it helps
/RasPi