ขอวิธีติดตั้ง imap สำหรับ DirectAdmin หน่อยนะครับ

เริ่มโดย 9mobile, 19 พฤศจิกายน 2014, 01:23:48

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

9mobile

ขอวิธีติดตั้ง imap บน DirectAdmin หน่อยนะครับ

ขอบคุณล่วงหน้านะครับ

iczykung



Sept 1, 2014.
Tested with this script, should make your life easier.
Written for CustomBuild 1.2, but can be changed for CB2, see below.

cd /root
wget files.directadmin.com/services/all/imap_php.sh
chmod 755 imap_php.sh
./imap_php.sh

If you'ure using CustomBuild 2.0, edit the file before running it.
Change:
CONFIGURE=configure.php5
to be:
CONFIGURE=configure.php55
or whichever php version.

If you're using suPhp, php-fpm or fastcgi, change:
WEB=ap2
to be:
WEB=suphp
WEB=fpm
WEB=fastcgi

================================================================
================================================================
2011 - older guide
Reported for custombuild:

1) install c-client.
Debian:
apt-get install libc-client-dev

rpm systems (CentOS, fedora):
yum install libc-client libc-client-devel

Reported for CentOS 64-bit, also run:
yum install krb5-appl-clients.x86_64
yum install krb5-appl-servers.x86_64

2) Use this guide:
http://help.directadmin.com/item.php?id=252

to add these 2 lines to the bottom (don't forget the \ on the previous line before them)

--with-imap=/usr/lib/dovecot/imap \
--with-imap-ssl

3) Then build php:
./build php n

and that's it.


Note: as per usual, making customizations to the default install will be beyond our support.
If there are any issues with this, we'll not be able to provide assistance to make the customization.


------

Reported fix for a keberos compile issue on 64-bit systems:
ln -s /usr/lib64 /usr/kerberos/lib

------
On CentOS 64-bit, if you see the error:
configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.

and cannot find libc-client.a anywhere on your box:
updatedb
locate libc-client.a

Download a uw-imap src.rpm from the internet. They can be found on rpmfind.net, eg:
http://rpmfind.net/linux/rpm2html/search.php?query=uw-imap&submit=Search+...&system=&arch=src

Then type (using the relevant src.rpm package url for your system, when possible):
wget http://files.directadmin.com/services/uw-imap-2007e-10.el6.src.rpm
rpmbuild --rebuild uw-imap-2007e-10.el6.src.rpm
cd /usr/src/redhat/RPMS/x86_64/
rpm -ivh uw-imap-static-2007e-10.el6.x86_64.rpm uw-imap-devel-2007e-10.el6.x86_64.rpm libc-client-2007e-10.el6.x86_64.rpm

Note, you may need to remove the newer version of libc-client and libc-client-devel, if the above conflict.
Also, link the .a file:
ln -s /usr/lib64/libc-client.a /usr/lib/libc-client.a
----------
Reported issue with the spec file in uw-imap-2007e-10.el6.src.rpm, which may prevent the build of the rpm:
You must change in SPEC file

%if 0%{?fedora}
%define _with_devel 1
# ship static lib, matches default upstream config
# as convenience to users, since our hacked shlib can potentially break
# abi semi-often
%define _with_static 1
%endif

To

%define _with_devel 1
# ship static lib, matches default upstream config
# as convenience to users, since our hacked shlib can potentially break
# abi semi-often
%define _with_static 1


----------
Reported for libc-client.a issue:
"The installation off libc-client.i686 and libc-client.x86_64 is enough to resolve the libc-client.a issue.
Sometimes yum install libc-client-devel.i686 and libc-client-devel.x86_64 is needed to."


===============================================
===============================================
older oudated option for customapache:

cd /home

mkdir build

cd build

wget http://files.directadmin.com/services/imapback.tar.gz

tar -zxvf imapback.tar.gz

cd imap-2002e

./buildit

cd c-client

make slx EXTRACFLAGS=-I/usr/kerberos/include EXTRALDFLAGS=-I/usr/kerberos/lib

mkdir /usr/local/imap-2000e/

mkdir /usr/local/imap-2000e/lib

mkdir /usr/local/imap-2000e/include

cp *.h /usr/local/imap-2000e/include

cp *.c /usr/local/imap-2000e/lib

cp c-client.a /usr/local/imap-2000e/lib

mv /usr/local/imap-2000e/lib/c-client.a /usr/local/imap-2000e/lib/libc-client.a

cd /usr/local/directadmin/customapache

nano -w configure.php  (Add --with-imap=/usr/local/imap-2000e \     to php config)

./build php n



Details for freebsd version:
http://forum.directadmin.com/showthread.php?s=&threadid=11043

FreeBSD: edit c-client/LDFAGS and set:
-lcrypt
-L/usr/lib -lssl -lcrypto

CentOS 64-bit systems:
http://forum.directadmin.com/showthread.php?p=99453#post99453

Report that --with-kerberos needs to be removed from the configure.php|php5

Affiliate Hosting สูงสุด 10% (ได้ทุกรอบบิล..รวมถึงต่ออายุ) สนใจ PM  [direct=https://coopnix.co.th]Cloud Enterprise Hosting (cPanel/DirectAdmin) [/direct][direct=https://coopnix.co.th]Enterprise SAS VPS[/direct]
[direct=https://coopnix.co.th]   Cloud Enterprise SSD VPS by VMWare  [/direct]
✔ CPU up to 40 Core ✔ Ram up to 128GB ✔ Disk up to 512GB ✔ Unmetered Bandwidth 
✔ High Availability nodes ✔ Cloud SSD Enterprise Storage ✔ 20Gbps Cluster Network ✔ Free DDoS Protection

9mobile

nano ไฟล์ configure/ap2/configure.php54
เพิ่ม
--with-imap=/usr/lib/dovecot/imap \
--with-imap-ssl

สั่ง ./build php n ไม่ผ่านครับ  

ฟ้องว่า มองหาไม่เจอ ติดปัญหาตรง 2 บรรทัด นี้ครับ
--with-imap=/usr/lib/dovecot/imap \
--with-imap-ssl

ท่านไดพอมีวิธีการง่ายๆไหมครับ สำหรับ custombuild 2.0 DA

:-X

iczykung

Affiliate Hosting สูงสุด 10% (ได้ทุกรอบบิล..รวมถึงต่ออายุ) สนใจ PM  [direct=https://coopnix.co.th]Cloud Enterprise Hosting (cPanel/DirectAdmin) [/direct][direct=https://coopnix.co.th]Enterprise SAS VPS[/direct]
[direct=https://coopnix.co.th]   Cloud Enterprise SSD VPS by VMWare  [/direct]
✔ CPU up to 40 Core ✔ Ram up to 128GB ✔ Disk up to 512GB ✔ Unmetered Bandwidth 
✔ High Availability nodes ✔ Cloud SSD Enterprise Storage ✔ 20Gbps Cluster Network ✔ Free DDoS Protection

9mobile

อ้างถึงจาก: iczykung ใน 20 พฤศจิกายน 2014, 13:37:32
ทำไมไม่ทำตามวิธีที่ผมโพสอ่ะครับ

ทำตามที่โพสนะครับ ขออภัยครับมือใหม่ฝึกหัดจริงๆคับ

อยู่ในขั้นตอน 2011 - older guide  

CB 2.0 ต้องทำตามนี้ไหมคับ   :wanwan004:

หรือท่านใดรับสอนฉบับภาษาไทย pm บอกหน่อยนะคับ มีค่าใช้จ่ายก็ยินดีครับ

:wanwan017:




darkknightza

อ้างถึงจาก: iczykung ใน 19 พฤศจิกายน 2014, 19:28:18


Sept 1, 2014.
Tested with this script, should make your life easier.
Written for CustomBuild 1.2, but can be changed for CB2, see below.

cd /root
wget files.directadmin.com/services/all/imap_php.sh
chmod 755 imap_php.sh
./imap_php.sh

If you'ure using CustomBuild 2.0, edit the file before running it.
Change:
CONFIGURE=configure.php5
to be:
CONFIGURE=configure.php55
or whichever php version.

If you're using suPhp, php-fpm or fastcgi, change:
WEB=ap2
to be:
WEB=suphp
WEB=fpm
WEB=fastcgi

================================================================
================================================================
2011 - older guide
Reported for custombuild:

1) install c-client.
Debian:
apt-get install libc-client-dev

rpm systems (CentOS, fedora):
yum install libc-client libc-client-devel

Reported for CentOS 64-bit, also run:
yum install krb5-appl-clients.x86_64
yum install krb5-appl-servers.x86_64

2) Use this guide:
http://help.directadmin.com/item.php?id=252

to add these 2 lines to the bottom (don't forget the \ on the previous line before them)

--with-imap=/usr/lib/dovecot/imap \
--with-imap-ssl

3) Then build php:
./build php n

and that's it.


Note: as per usual, making customizations to the default install will be beyond our support.
If there are any issues with this, we'll not be able to provide assistance to make the customization.


------

Reported fix for a keberos compile issue on 64-bit systems:
ln -s /usr/lib64 /usr/kerberos/lib

------
On CentOS 64-bit, if you see the error:
configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.

and cannot find libc-client.a anywhere on your box:
updatedb
locate libc-client.a

Download a uw-imap src.rpm from the internet. They can be found on rpmfind.net, eg:
http://rpmfind.net/linux/rpm2html/search.php?query=uw-imap&submit=Search+...&system=&arch=src

Then type (using the relevant src.rpm package url for your system, when possible):
wget http://files.directadmin.com/services/uw-imap-2007e-10.el6.src.rpm
rpmbuild --rebuild uw-imap-2007e-10.el6.src.rpm
cd /usr/src/redhat/RPMS/x86_64/
rpm -ivh uw-imap-static-2007e-10.el6.x86_64.rpm uw-imap-devel-2007e-10.el6.x86_64.rpm libc-client-2007e-10.el6.x86_64.rpm

Note, you may need to remove the newer version of libc-client and libc-client-devel, if the above conflict.
Also, link the .a file:
ln -s /usr/lib64/libc-client.a /usr/lib/libc-client.a
----------
Reported issue with the spec file in uw-imap-2007e-10.el6.src.rpm, which may prevent the build of the rpm:
You must change in SPEC file

%if 0%{?fedora}
%define _with_devel 1
# ship static lib, matches default upstream config
# as convenience to users, since our hacked shlib can potentially break
# abi semi-often
%define _with_static 1
%endif

To

%define _with_devel 1
# ship static lib, matches default upstream config
# as convenience to users, since our hacked shlib can potentially break
# abi semi-often
%define _with_static 1


----------
Reported for libc-client.a issue:
"The installation off libc-client.i686 and libc-client.x86_64 is enough to resolve the libc-client.a issue.
Sometimes yum install libc-client-devel.i686 and libc-client-devel.x86_64 is needed to."


===============================================
===============================================
older oudated option for customapache:

cd /home

mkdir build

cd build

wget http://files.directadmin.com/services/imapback.tar.gz

tar -zxvf imapback.tar.gz

cd imap-2002e

./buildit

cd c-client

make slx EXTRACFLAGS=-I/usr/kerberos/include EXTRALDFLAGS=-I/usr/kerberos/lib

mkdir /usr/local/imap-2000e/

mkdir /usr/local/imap-2000e/lib

mkdir /usr/local/imap-2000e/include

cp *.h /usr/local/imap-2000e/include

cp *.c /usr/local/imap-2000e/lib

cp c-client.a /usr/local/imap-2000e/lib

mv /usr/local/imap-2000e/lib/c-client.a /usr/local/imap-2000e/lib/libc-client.a

cd /usr/local/directadmin/customapache

nano -w configure.php  (Add --with-imap=/usr/local/imap-2000e \     to php config)

./build php n



Details for freebsd version:
http://forum.directadmin.com/showthread.php?s=&threadid=11043

FreeBSD: edit c-client/LDFAGS and set:
-lcrypt
-L/usr/lib -lssl -lcrypto

CentOS 64-bit systems:
http://forum.directadmin.com/showthread.php?p=99453#post99453

Report that --with-kerberos needs to be removed from the configure.php|php5


ขอบคุณครับ
[direct=http://make-more-moneyy.blogspot.com/2012/10/adfly.html]หาเงินวันละ350บาท มั่นคง จ่ายมาสิบปีแล้ว[/direct]
[direct=https://www.popads.net/users/refer/519628]หารายได้กับ popup เจ้านี้ เรทแรงคลิ๊ก[/direct]
Hosting อันดับ 1 คุณภาพสูง ราคาถูก จัดเลย[direct=https://support.hostneverdie.com/aff.php?aff=504][/direct]
โดเมนเนมสวยๆ ราคาถูก จดกับเราสิ[direct=https://my.thaidatahosting.com/aff.php?aff=227]ที่นี่