หัวข้อ: ขอวิธีติดตั้ง imap สำหรับ DirectAdmin หน่อยนะครับ
เริ่มหัวข้อโดย: 9mobile ที่ 19 พฤศจิกายน 2014, 01:23:48
ขอวิธีติดตั้ง imap บน DirectAdmin หน่อยนะครับ
ขอบคุณล่วงหน้านะครับ
หัวข้อ: Re: ขอวิธีติดตั้ง imap สำหรับ php 5.4 บน DirectAdmin หน่อยนะครับ
เริ่มหัวข้อโดย: 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
หัวข้อ: Re: ขอวิธีติดตั้ง imap สำหรับ php 5.4 บน DirectAdmin หน่อยนะครับ
เริ่มหัวข้อโดย: 9mobile ที่ 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
:-X
หัวข้อ: Re: ขอวิธีติดตั้ง imap สำหรับ php 5.4 บน DirectAdmin หน่อยนะครับ
เริ่มหัวข้อโดย: iczykung ที่ 20 พฤศจิกายน 2014, 13:37:32
ทำไมไม่ทำตามวิธีที่ผมโพสอ่ะครับ
หัวข้อ: Re: ขอวิธีติดตั้ง imap สำหรับ php 5.4 บน DirectAdmin หน่อยนะครับ
เริ่มหัวข้อโดย: 9mobile ที่ 20 พฤศจิกายน 2014, 14:00:36
ทำไมไม่ทำตามวิธีที่ผมโพสอ่ะครับ
ทำตามที่โพสนะครับ ขออภัยครับมือใหม่ฝึกหัดจริงๆคับ อยู่ในขั้นตอน 2011 - older guide CB 2.0 ต้องทำตามนี้ไหมคับ :wanwan004: หรือท่านใดรับสอนฉบับภาษาไทย pm บอกหน่อยนะคับ มีค่าใช้จ่ายก็ยินดีครับ :wanwan017:
หัวข้อ: Re: ขอวิธีติดตั้ง imap สำหรับ php 5.4 บน DirectAdmin หน่อยนะครับ
เริ่มหัวข้อโดย: darkknightza ที่ 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
ขอบคุณครับ
|