Click to See Complete Forum and Search --> : Recompiling


ahostLT
08-26-2006, 10:58 AM
Hi,

How to recompile PHP without loosing current configuration (IonCube, Zend Optimizer, eaccelerator and etc) and also adding "--with-mime-magic".

Here is curent configure:
'./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--prefix=/usr/local' '--with-xml' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--enable-magic-quotes' '--with-mysqli' '--with-mysql=/usr' '--enable-discard-path' '--with-pear' '--enable-sockets' '--enable-track-vars' '--with-zip' '--with-zlib'

INI path:
/usr/local/Zend/etc/php.ini

OS - CentOS 4.3 i686 / PHP 4.4.2 / Apache 1.3.36

php saved me
08-28-2006, 07:11 PM
create a new directory for you source, and compile in the new directory. you'll have to research this a little, but i believe you should remove the '--prefix=/usr/local' option as i think this dictates where the newly compiled objects get placed. and you don't want to overwrite your existing php install until you're certain everything works properly.