How can enable imap in php.ini

RoSe picture RoSe · Apr 23, 2014 · Viewed 37.8k times · Source

I was trying to install vtiger in my server for installing vtiger we need to enable imap I tried to enable imap using php.ini by removing ; from extension=php_imap.dll but this does not work. Installing page still showing that imap is not enabled. Can i enable this using any php function. Any help will be greatly appreciated

Answer

cilap picture cilap · Apr 4, 2015

On Ubuntu and debian a better way is to enable it this way:

sudo apt install php-imap
sudo phpenmod imap
sudo service apache2 restart

On CentOS7+

sudo yum install php-imap

On Ubuntu (<= 14.04) and debian (<= Weezy)

sudo apt-get install php5-imap
sudo php5enmod imap
sudo service apache2 restart