ยินดีต้อนรับคุณ, บุคคลทั่วไป กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น

ThaiSEOBoard.comHost and DomainHost & Domain (register)ขอวิธีติดตั้ง imap สำหรับ DirectAdmin หน่อยนะครับ
หน้า: [1]   ลงล่าง
พิมพ์
ผู้เขียน หัวข้อ: ขอวิธีติดตั้ง imap สำหรับ DirectAdmin หน่อยนะครับ  (อ่าน 1873 ครั้ง)
0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
9mobile
Newbie
*

พลังน้ำใจ: 1
ออฟไลน์ ออฟไลน์

กระทู้: 90



ดูรายละเอียด
« เมื่อ: 19 พฤศจิกายน 2014, 01:23:48 »

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

ขอบคุณล่วงหน้านะครับ
« แก้ไขครั้งสุดท้าย: 20 พฤศจิกายน 2014, 19:47:41 โดย 9mobile » บันทึกการเข้า
iczykung
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 182
ออฟไลน์ ออฟไลน์

กระทู้: 2,437



ดูรายละเอียด เว็บไซต์
« ตอบ #1 เมื่อ: 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

บันทึกการเข้า

Affiliate Hosting สูงสุด 10% (ได้ทุกรอบบิล..รวมถึงต่ออายุ) สนใจ PM  Cloud Enterprise Hosting (cPanel/DirectAdmin) Enterprise SAS VPS
   Cloud Enterprise SSD VPS by VMWare 
✔ 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
Newbie
*

พลังน้ำใจ: 1
ออฟไลน์ ออฟไลน์

กระทู้: 90



ดูรายละเอียด
« ตอบ #2 เมื่อ: 20 พฤศจิกายน 2014, 11:51:20 »

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

 Lips Sealed
« แก้ไขครั้งสุดท้าย: 20 พฤศจิกายน 2014, 14:25:11 โดย 9mobile » บันทึกการเข้า
iczykung
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 182
ออฟไลน์ ออฟไลน์

กระทู้: 2,437



ดูรายละเอียด เว็บไซต์
« ตอบ #3 เมื่อ: 20 พฤศจิกายน 2014, 13:37:32 »

ทำไมไม่ทำตามวิธีที่ผมโพสอ่ะครับ
บันทึกการเข้า

Affiliate Hosting สูงสุด 10% (ได้ทุกรอบบิล..รวมถึงต่ออายุ) สนใจ PM  Cloud Enterprise Hosting (cPanel/DirectAdmin) Enterprise SAS VPS
   Cloud Enterprise SSD VPS by VMWare 
✔ 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
Newbie
*

พลังน้ำใจ: 1
ออฟไลน์ ออฟไลน์

กระทู้: 90



ดูรายละเอียด
« ตอบ #4 เมื่อ: 20 พฤศจิกายน 2014, 14:00:36 »

ทำไมไม่ทำตามวิธีที่ผมโพสอ่ะครับ

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

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

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

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

 wanwan017



« แก้ไขครั้งสุดท้าย: 20 พฤศจิกายน 2014, 14:08:51 โดย 9mobile » บันทึกการเข้า
darkknightza
เจ้าพ่อบอร์ดเสียว
*

พลังน้ำใจ: 167
ออฟไลน์ ออฟไลน์

กระทู้: 4,245



ดูรายละเอียด เว็บไซต์
« ตอบ #5 เมื่อ: 20 พฤศจิกายน 2014, 16:23:11 »

โค๊ด:

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

ขอบคุณครับ
บันทึกการเข้า

หาเงินวันละ350บาท มั่นคง จ่ายมาสิบปีแล้ว
หารายได้กับ popup เจ้านี้ เรทแรงคลิ๊ก
Hosting อันดับ 1 คุณภาพสูง ราคาถูก จัดเลย
โดเมนเนมสวยๆ ราคาถูก จดกับเราสิที่นี่
หน้า: [1]   ขึ้นบน
พิมพ์