我试图在我的服务器中安装vtiger来安装vtiger我们需要启用imap我试图通过删除; from extension=php_imap.dll
来启用使用php.ini的imap但这不起作用。安装页面仍然显示未启用imap。我可以使用任何PHP函数启用它。任何帮助将不胜感激
在Ubuntu和debian上更好的方法是以这种方式启用它:
sudo apt-get install php5-imap
sudo php5enmod imap
sudo service apache2 restart
如果您使用的是LAMP服务器,
首先使用终端上的命令安装IMAP
$ sudo apt-get install php5-imap
然后将此extension=imap.so
代码添加到您的php.ini文件中
重启你的服务器,
$ sudo /etc/init.d/apache2 restart
它会工作
sudo apt-get purge php5
sudo apt-get install php5=5.5.9+dfsg-1ubuntu4
sudo apt-get install php5-imap php5-curl
extension=imap.so
extension=curl.so
重新加载并重启apache2。清除所有浏览器历史记录。和检查比。它可能会有所帮助。
对于LAMP上的PHP7(在Ubuntu中)
sudo apt-get install php7.0-imap
sudo service apache2 restart
在centos7 php7上
yum install php-imap