recompile php for ispconfig with zlib

Discussion in 'Installation/Configuration' started by madie, Nov 2, 2006.

  1. madie

    madie New Member

    Anyone have a HowTo for recompile php for ispconfig with zlib?

    I have install a Server with Debian 3.1, ISPConfig 2.2.7 and PHP5.1.6 like in the Howtos perfect Debian.

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    1) Download the latest ISPConfig installer and unpack it.
    2) Edit the file install_ispconfig/compile_apps/compile and enable zlib in the configure string for PHP.
    3) Run the normal ISPConfig setup script, your installation will be upgraded then.
  3. mike_phi

    mike_phi New Member

    does setup remove previous installation

    does this imply editing
    install_ispconfig/compile_apps/compile and adding --with-zlib

    will this wipe my previous ISPConfig and replace it with a fresh one i.e. all configuration and previusly conigured websites or will it detect the existing installation and just update php

    and I would not need to do the following steps all over again

    basically my question is will this just do a upgrade and not disrupt my existing installation or will it re-install and disrupt existing configuration and content

    cheets mic
    Last edited: Jan 4, 2009
  4. falko

    falko Super Moderator ISPConfig Developer

    It will do an upgrade. However, you should back up /root/ispconfig, /home/admispconfig and the ISPConfig database before you try this - the upgrade could fail if something is wrong with the modifications.
  5. mike_phi

    mike_phi New Member

    Hi there my fedora ISPConfig with zlib for PHP install went well, I have now set up a debian machine using the
    "The Perfect Server - Debian Lenny (Debian 5.0) [ISPConfig 2]"

    I need to ensure that PHP is compiled with zlib in this case too as I have written a ISPConfig module that will run on port 81, just thought I would ask first seeing that this will be a fresh installation and I would like to keep it clean.

    I am using

    as far as enabling it is concerned I will edit the (please correct where I am wrong I am wrong)

    install_ispconfig/compile_aps/compile and add --with-zlib

    cd ../${PHP}
    ./configure --with-apxs=${INSTALL_ROOT}/httpd/bin/apxs [COLOR="Red"]--with-zlib [/COLOR]--enable-sockets --enable-mbstring=all --with-config-file-path=${INSTALL_ROOT}/php --enable-ftp --prefix=${INSTALL_ROOT}/php ${WITH_OPENSSL} ${WITH_MYSQL} ${WITH_XML} ${WITH_ZLIB_DIR} --without-pear --with-mcrypt=${INSTALL_ROOT}/libmcrypt || error "Could not configure PHP"

    cd ../${PHP}
    ./configure --with-apxs=${INSTALL_ROOT}/httpd/bin/apxs  --enable-sockets --enable-mbstring=all --with-config-file-path=${INSTALL_ROOT}/php --enable-ftp --prefix=${INSTALL_ROOT}/php ${WITH_OPENSSL} ${WITH_MYSQL} ${WITH_XML} [COLOR="Red"]${WITH_ZLIB_DIR}=/usr  [/COLOR]--without-pear --with-mcrypt=${INSTALL_ROOT}/libmcrypt || error "Could not configure PHP"

    before compiling what apt-get install commands do I need to perform to ensure I have zlib on my system as I am not to sure as to which library to use I was thinking of using the follwing please confirm if this is correct.

    apt-get install zlib1g-dbg zlib1g zlib1g-dev
    I am not sure whether these are the correct libraries zlib1g-dbg zlib1g zlib1g-dev

    Regards Mic
    Last edited: Aug 23, 2010

Share This Page