Reputation: 116
How can one install imap for php in ubuntu for php7.1 preferably in the terminal.
There's some info on this on the php.net manual but it's a bit dated.
It talks about the c-client library and restarting apache afterwards etc
I'm still pretty new with linux
Upvotes: 8
Views: 40687
Reputation: 551
You can install IMAP by following ways.
Step1: sudo apt-get install php7.1-imap
Step2: sudo phpenmod imap
Step3: php -m. Find out imap module
Step4: Run below command to confirm imap is install. 1. php -i | grep -i imap 2. dpkg -l | grep php7.1-imap
check imap is showing or not.
After enabling a module, you have to restart your pc. If a module is still not displayed in phpinfo(), please check on the next day.
Upvotes: 3
Reputation: 869
As long as it is part of the php repo you are using, this will be the package you are looking for.
sudo apt install php7.1-imap
Upvotes: 23