Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

config imap with php how ?

Discussion in 'General Discussion' started by silvernetuk, Jan 11, 2003.

  1. silvernetuk

    silvernetuk Well-Known Member

    Joined:
    Sep 2, 2002
    Messages:
    311
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    United Kingdom
    Hi,

    How do I config IMAP into php ?
    I am very new at this

    Regarrds,
    Garry
     
  2. silvernetuk

    silvernetuk Well-Known Member

    Joined:
    Sep 2, 2002
    Messages:
    311
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    United Kingdom
    Hi,

    Anyone ? I really need to get this installed, please if you know, let me know how.

    Regards,
    Garry
     
  3. silvernetuk

    silvernetuk Well-Known Member

    Joined:
    Sep 2, 2002
    Messages:
    311
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    United Kingdom
    Hi,

    Can it be done by running /srcipts/easyapache in ssh ?
    if so does anyone know what option I need to pick ?

    Regards,
    Garry
     
  4. jimcarter

    jimcarter Well-Known Member

    Joined:
    Jun 30, 2002
    Messages:
    152
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    UK
    SSH to your server as root
    wget http://layer1.cpanel.net/buildapache.sea
    sh buildapache.sea
    then choose the option with php with the IMAP module, + you can choose GD and mcrypt if needed,
    Thanks
     
  5. silvernetuk

    silvernetuk Well-Known Member

    Joined:
    Sep 2, 2002
    Messages:
    311
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    United Kingdom
    Hi,

    So that will config IMAP into PHP for me and that it ?
    I already have GD and Mcrypt installed and config it to PHP

    Regards,
    Garry
     
  6. silvernetuk

    silvernetuk Well-Known Member

    Joined:
    Sep 2, 2002
    Messages:
    311
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    United Kingdom
    Hi,

    I have read in the below thread that buildapache.sea does not have IMAP support in it, the thread was posted in the 05/01/03 and the link is below to that thread

    http://216.118.116.105/read.php?TID=6680&page=1#28996

    Any help please ?

    Regards,
    Garry
     
  7. H2Hosting.com

    H2Hosting.com Well-Known Member

    Joined:
    Sep 4, 2001
    Messages:
    192
    Likes Received:
    0
    Trophy Points:
    316
    [quote:33bf63f4a6][i:33bf63f4a6]Originally posted by silvernetuk[/i:33bf63f4a6]
    How do I config IMAP into php ?
    I am very new at this
    Regarrds,
    Garry[/quote:33bf63f4a6]

    /scripts/ensurerpm imap-devel
    /scripts/ensurerpm imap-uw
    if [ -e &/usr/local/libexec& ] ; then
    cp -f /usr/local/cpanel/3rdparty/bin/imapd /usr/local/libexec
    fi
    if [ -e &/usr/lib/libc-client.a& ]; then
    (cd /usr/lib;ln -s libc-client.a c-client.a)
    fi
    if [ &`grep openssl /usr/lib/libc-client.a 2&/dev/null`& = && ]; then
    export WITHIMAP=&--with-imap&
    if [ -e /etc/krb5.conf ]; then
    WITHIMAP=&$WITHIMAP --with-kerberos&
    fi
    else
    export WITHIMAP=&--with-imap --with-imap-ssl&
    if [ -e /etc/krb5.conf ]; then
    WITHIMAP=&$WITHIMAP --with-kerberos&
    fi
    fi


    THEN:

    here is my php config line:

    cd php-4.2.3
    rm -f config.cache
    ./configure --with-apxs=/usr/local/apache/bin/apxs --with-xml --with-imap --with-kerberos --with-pdflib --with-pear --with-gettext --enable-calendar --with-curl --with-iconv=/usr/local/lib --with-swf=/usr/local/flash --enable-ftp --with-gd --enable-gd-native-tt --enable-gd-imgstrttf --with-gdbm=/usr/include --with-jpeg-dir=/usr/local/lib --with-xpm-dir=/usr/X11R6 --with-png --with-png-dir=/usr/local/ --with-mcrypt --with-ming=../ming-0.2a --enable-magic-quotes --with-mysql --enable-xslt --with-xslt-sablot --with-sablot --with-sablot-js --enable-sablot-errors-descriptive --enable-safe-mode --enable-track-vars --enable-memory-limit=yes --enable-short-tags --enable-mailparse --with-ttf --with-t1lib --with-expat --with-expat-dir=/usr/ --enable-versioning --with-zlib-dir=/usr --enable-dbase --enable-mailparse --with-freetype-dir=/usr/local/include/freetype2/freetype --with-imap-ssl
    echo &#undef COMPILE_DL_ZLIB& && main/php_config.h
    echo &#define HAVE_SENDMAIL 1& && main/php_config.h
    make
    make install


    MOST IMPORTANT part is:
    --with-imap --with-kerberos --with-imap-ssl
     
  8. silvernetuk

    silvernetuk Well-Known Member

    Joined:
    Sep 2, 2002
    Messages:
    311
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    United Kingdom
    Hi,

    Ok I am a little lost here.

    When does this code go ? and where do I get the imap modules ?

    Regards.
    Garry

    [quote:5b286e9c38]
    /scripts/ensurerpm imap-devel
    /scripts/ensurerpm imap-uw
    if [ -e &/usr/local/libexec& ] ; then
    cp -f /usr/local/cpanel/3rdparty/bin/imapd /usr/local/libexec
    fi
    if [ -e &/usr/lib/libc-client.a& ]; then
    (cd /usr/lib;ln -s libc-client.a c-client.a)
    fi
    if [ &`grep openssl /usr/lib/libc-client.a 2&/dev/null`& = && ]; then
    export WITHIMAP=&--with-imap&
    if [ -e /etc/krb5.conf ]; then
    WITHIMAP=&$WITHIMAP --with-kerberos&
    fi
    else
    export WITHIMAP=&--with-imap --with-imap-ssl&
    if [ -e /etc/krb5.conf ]; then
    WITHIMAP=&$WITHIMAP --with-kerberos&
    fi
    fi


    THEN:

    here is my php config line:

    cd php-4.2.3
    rm -f config.cache
    ./configure --with-apxs=/usr/local/apache/bin/apxs --with-xml --with-imap --with-kerberos --with-pdflib --with-pear --with-gettext --enable-calendar --with-curl --with-iconv=/usr/local/lib --with-swf=/usr/local/flash --enable-ftp --with-gd --enable-gd-native-tt --enable-gd-imgstrttf --with-gdbm=/usr/include --with-jpeg-dir=/usr/local/lib --with-xpm-dir=/usr/X11R6 --with-png --with-png-dir=/usr/local/ --with-mcrypt --with-ming=../ming-0.2a --enable-magic-quotes --with-mysql --enable-xslt --with-xslt-sablot --with-sablot --with-sablot-js --enable-sablot-errors-descriptive --enable-safe-mode --enable-track-vars --enable-memory-limit=yes --enable-short-tags --enable-mailparse --with-ttf --with-t1lib --with-expat --with-expat-dir=/usr/ --enable-versioning --with-zlib-dir=/usr --enable-dbase --enable-mailparse --with-freetype-dir=/usr/local/include/freetype2/freetype --with-imap-ssl
    echo &#undef COMPILE_DL_ZLIB& && main/php_config.h
    echo &#define HAVE_SENDMAIL 1& && main/php_config.h
    make
    make install


    MOST IMPORTANT part is:
    --with-imap --with-kerberos --with-imap-ssl[/quote:5b286e9c38]
     
  9. silvernetuk

    silvernetuk Well-Known Member

    Joined:
    Sep 2, 2002
    Messages:
    311
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    United Kingdom
    Hi,

    This has now been installed and working :)

    Regards,
    Garry
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice