如何在php.ini中启用imap

问题描述 投票:10回答:5

我试图在我的服务器中安装vtiger来安装vtiger我们需要启用imap我试图通过删除; from extension=php_imap.dll来启用使用php.ini的imap但这不起作用。安装页面仍然显示未启用imap。我可以使用任何PHP函数启用它。任何帮助将不胜感激

php vtiger php-ini
5个回答
11
投票

在Ubuntu和debian上更好的方法是以这种方式启用它:

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

2
投票

如果您使用的是LAMP服务器,

首先使用终端上的命令安装IMAP

$ sudo apt-get install php5-imap

然后将此extension=imap.so代码添加到您的php.ini文件中

重启你的服务器,

$ sudo /etc/init.d/apache2 restart

它会工作


2
投票
sudo apt-get purge php5
sudo apt-get install php5=5.5.9+dfsg-1ubuntu4
sudo apt-get install php5-imap php5-curl

添加php.ini

extension=imap.so


extension=curl.so

重新加载并重启apache2。清除所有浏览器历史记录。和检查比。它可能会有所帮助。


1
投票

对于LAMP上的PHP7(在Ubuntu中)

sudo apt-get install php7.0-imap
sudo service apache2 restart

0
投票

在centos7 php7上

yum install php-imap
© www.soinside.com 2019 - 2024. All rights reserved.