directadmin通常默认是没有安装IMAP的,如果你需要imap编译成php,请运行如下命令:
CentOS
yum -y install pam-devel
Debian的
apt-get install libc-client-dev
继续输入命令:
cd /root
wget -O imap_php.sh files.directadmin.com/services/all/imap_php.sh
chmod 755 imap_php.sh
./imap_php.sh
支持CustomBuild 1.x和2.x.
对于CustomBuild2,将自动检测configure.phpX路径。
文章参考:https://help.directadmin.com/item.php?id=341