Parallels H-Sphere Documentation System Administrator Guide

 

PHP Imap Compilation

(outdated since H-Sphere 2.4.3)
 
 

Related Docs:   PHP Compilation Imap Server Installation

Last modified: 01 Jun 2006

 

WARNING: This documentation covers Parallels H-Sphere versions up to 3.1. For the latest up-to-date Parallels H-Sphere documentation, please proceed to the official Parallels site.

This document describes how to compile php IMAP support. Please don't treat it as a complete and prescriptive manual. Different versions and platforms may require additional steps or packages, and we recommend that the compilation is performed by a qualified system administrator. You may also use our services.

  1. Log in as root:
    su -
  2. Download IMAP installation
  3. Untar the package:
    tar -zxf IMAP_PACKAGE_FILENAME
  4. Enter the source directory:
    cd IMAP_PACKAGE_DIRECTORY
  5. Create a symlink for SSL:
    # [ -d /usr/local/ssl ] || ln -s /usr /usr/local/ssl
  6. Build the package.
    Linux RedHat ES3:
    # make lrh EXTRACFLAGS="-I/usr/kerberos/include"
    Linux RedHat 7.x:
    # make lrh
    FreeBSD:
    # make bsf
  7. Change file permissions:
    Linux:
    # chown root:root `find ./ | grep ".*.h$" | xargs` c-client/c-client.a
    FreeBSD:
    # chown root:wheel `find ./ | grep ".*.h$" | xargs` c-client/c-client.a
  8. Install the lib and include files:
    # mkdir -p /hsphere/shared/lib
    # mkdir -p /hsphere/shared/include/c-client
    # cp -f c-client/c-client.a /hsphere/shared/lib/
    # cp -f src/c-client/*.h /hsphere/shared/include/c-client/
    # cp -f c-client/linkage.h /hsphere/shared/include/c-client/
    # cp -f src/osdep/unix/*.h /hsphere/shared/include/c-client/
    # [ -f /hsphere/shared/include/c-client/osdep.h ] && \
    rm -f /hsphere/shared/include/c-client/osdep.h
  9. Create the osdep.h link:
    Linux:
    # ln -s /hsphere/shared/include/c-client/os_slx.h \
    /hsphere/shared/include/c-client/osdep.h
    FreeBSD:
    # ln -s /hsphere/shared/include/c-client/os_bsf.h \
    /hsphere/shared/include/c-client/osdep.h

Related Docs:   PHP Compilation Imap Server Installation



© Copyright 2017. Parallels Holdings. All rights reserved.