如何在 php.ini 中启用 imap

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/23242402/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 16:36:26  来源:igfitidea点击:

How can enable imap in php.ini

phpvtigerphp-ini

提问by RoSe

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.dllbut 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

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

回答by cilap

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

在 Ubuntu 和 debian 上,更好的方法是通过以下方式启用它:

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

回答by Vinod VT

If you are using LAMPserver,

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

First install IMAP using the command on terminal

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

$ sudo apt-get install php5-imap

Then add this extension=imap.socode to your php.inifile

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

Restart your server,

重启你的服务器,

$ sudo /etc/init.d/apache2 restart

It will work

它会工作

回答by Navneet

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

add in php.ini

在 php.ini 中添加

extension=imap.so


extension=curl.so

reload and restart apache2. clear all your browser history. And Check than. it may be help.

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

回答by Joe

For PHP7 on LAMP (in Ubuntu)

对于 LAMP 上的 PHP7(在 Ubuntu 中)

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

回答by doapydave

on centos7 php7

在centos7 php7

yum install php-imap