Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can enable imap in php.ini

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

like image 614
RoSe Avatar asked Apr 23 '14 11:04

RoSe


2 Answers

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
like image 138
cilap Avatar answered Oct 16 '22 13:10

cilap


If you are using LAMP server,

First install IMAP using the command on terminal

$ sudo apt-get install php5-imap

Then add this extension=imap.so code to your php.ini file

Restart your server,

$ sudo /etc/init.d/apache2 restart

It will work

like image 3
Vinod VT Avatar answered Oct 16 '22 14:10

Vinod VT