{"id":751,"date":"2013-04-22T03:47:09","date_gmt":"2013-04-22T01:47:09","guid":{"rendered":"http:\/\/www.shukko.com\/x3\/?p=751"},"modified":"2013-04-22T03:48:28","modified_gmt":"2013-04-22T01:48:28","slug":"centos-64-bit-imap-client-setup-for-directadmin","status":"publish","type":"post","link":"https:\/\/www.shukko.com\/x3\/2013\/04\/22\/centos-64-bit-imap-client-setup-for-directadmin\/","title":{"rendered":"centos 64 bit imap client setup for directadmin"},"content":{"rendered":"<p>once imap clienti kuralim bu script ile:<\/p>\n<p><code><br \/>\n#!\/bin\/sh<br \/>\n# Script for PHP-IMAP installation. 0.1b<br \/>\n# Written by Martynas Bendorius (smtalk)<\/p>\n<p>CWD=`pwd`<br \/>\nOS=`uname`<\/p>\n<p>#Is it a 64-bit OS?<br \/>\nB64=0<\/p>\n<p>B64COUNT=`uname -m | grep -c 64`<br \/>\nif [ \"$B64COUNT\" -eq 1 ]; then<br \/>\n        B64=1<br \/>\n        LD_LIBRARY_PATH=\/lib64:\/usr\/lib64:\/usr\/local\/lib64:\/lib:\/usr\/lib:\/usr\/local\/lib<br \/>\n        export LD_LIBRARY_PATH<br \/>\nfi<\/p>\n<p>if [ ! -e \/usr\/include\/krb5.h ] && [ -e \/etc\/redhat-release ]; then<br \/>\n        echo \"Installing krb5-devel\"<br \/>\n        yum -y install krb5-devel<br \/>\nfi<\/p>\n<p>VERSION=2006k<br \/>\nURL=\"ftp:\/\/ftp.cac.washington.edu\/imap\/old\/imap-${VERSION}.tar.Z\"<br \/>\nFILENAME=imap-${VERSION}<br \/>\nTARBALL=${FILENAME}.tar.Z<\/p>\n<p>echo \"Downloading ${TARBALL}...\"<br \/>\nwget -O ${TARBALL} ${URL}<br \/>\ntar xzf ${TARBALL}<br \/>\ncd ${FILENAME}<\/p>\n<p>echo \"Installing ${FILENAME}...\"<\/p>\n<p>if [ ${OS} = \"FreeBSD\" ]; then<br \/>\n        if [ ${B64} -eq 0 ]; then<br \/>\n                make bsf<br \/>\n        else<br \/>\n                make bsf EXTRACFLAGS=-fPIC<br \/>\n        fi<br \/>\nelse<br \/>\n        perl -pi -e 's#SSLDIR=\/usr\/local\/ssl#SSLDIR=\/etc\/pki\/tls#' src\/osdep\/unix\/Makefile<br \/>\n        perl -pi -e 's#SSLINCLUDE=\\$\\(SSLDIR\\)\/include#SSLINCLUDE=\/usr\/include\/openssl#' src\/osdep\/unix\/Makefile<br \/>\n        perl -pi -e 's#SSLLIB=\\$\\(SSLDIR\\)\/lib#SSLLIB=\/usr\/lib\/openssl#' src\/osdep\/unix\/Makefile<br \/>\n        if [ ${B64} -eq 0 ]; then<br \/>\n                make slx<br \/>\n        else<br \/>\n                make slx EXTRACFLAGS=-fPIC<br \/>\n        fi<br \/>\nfi<\/p>\n<p>echo \"Copying files to \/usr\/local\/php-imap\"<br \/>\nmkdir -p \/usr\/local\/php-imap\/include<br \/>\nmkdir -p \/usr\/local\/php-imap\/lib<br \/>\nchmod -R 077 \/usr\/local\/php-imap<br \/>\ncp -f c-client\/*.h \/usr\/local\/php-imap\/include\/<br \/>\ncp -f c-client\/*.c \/usr\/local\/php-imap\/lib\/<br \/>\ncp -f c-client\/c-client.a \/usr\/local\/php-imap\/lib\/libc-client.a<br \/>\ncd ..<br \/>\nrm -rf ${FILENAME}<\/p>\n<p>exit 0;<\/p>\n<p><\/code><\/p>\n<p>sonra<\/p>\n<p>\/usr\/local\/directadmin\/custombuild\/configure altinda uygun satiri ekleyelim<\/p>\n<p><code><br \/>\n   --with-imap=\/usr\/local\/php-imap \\<br \/>\n        --with-imap-ssl<\/p>\n<p><\/code><\/p>\n<p>sonra <\/p>\n<p>.\/build php n<\/p>\n<p>hatta birde php.info uygun yere atip bakalim<\/p>\n<p><code><\/p>\n<p><?php\n\n\/\/ Show all information, defaults to INFO_ALL\nphpinfo();\n\n\/\/ Show just the module information.\n\/\/ phpinfo(8) yields identical results.\nphpinfo(INFO_MODULES);\n\n?><\/p>\n<p><\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>once imap clienti kuralim bu script ile: #!\/bin\/sh # Script for PHP-IMAP installation. 0.1b # Written by Martynas Bendorius (smtalk) CWD=`pwd` OS=`uname` #Is it a 64-bit OS? B64=0 B64COUNT=`uname -m | grep -c 64` if [ &#8220;$B64COUNT&#8221; -eq 1 ]; then B64=1 LD_LIBRARY_PATH=\/lib64:\/usr\/lib64:\/usr\/local\/lib64:\/lib:\/usr\/lib:\/usr\/local\/lib export LD_LIBRARY_PATH fi if [ ! -e \/usr\/include\/krb5.h ] &#038;&#038; [ -e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-751","post","type-post","status-publish","format-standard","hentry","category-kategerisiz"],"_links":{"self":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/comments?post=751"}],"version-history":[{"count":2,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/751\/revisions"}],"predecessor-version":[{"id":753,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/751\/revisions\/753"}],"wp:attachment":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/media?parent=751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/categories?post=751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/tags?post=751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}