HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Compile php for ispconfig with zlib on Debian Lenny (Debian 5.0) [ISPConfig 2 (http://www.howtoforge.com/forums/showthread.php?t=48194)

mike_phi 23rd August 2010 15:52

Compile php for ispconfig with zlib on Debian Lenny (Debian 5.0) [ISPConfig 2
 
Hi there I origionally posted this here

http://howtoforge.com/forums/showthread.php?t=7875

but thought it more appropiate to start its own thread as this will be a initial compile and not a recompile as well as its Debian specific.

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
ISPConfig-2.2.37.tar.gz

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

Code:

cd ../${PHP}
./configure --with-apxs=${INSTALL_ROOT}/httpd/bin/apxs --with-zlib --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"

or

Code:

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} ${WITH_ZLIB_DIR}=/usr  --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.

Code:

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


All times are GMT +2. The time now is 20:35.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.