Click to See Complete Forum and Search --> : PHP 4.2.1 > 4.3.1 upgrade issues


neotrace
03-21-2003, 12:59 PM
I previously built php w/the following:


'./configure' '--prefix=/usr/local' '--with-apache=/home/src/Apachetoolbox-1.5.58/apache_1.3.26' '--enable-exif' '--enable-track-vars' '--with-calendar=shared' '--enable-magic-quotes' '--enable-trans-sid' '--enable-wddx' '--enable-ftp' '--enable-inline-optimization' '--enable-memory-limit' '--with-gd=/usr/local' '--with-zlib' '--enable-gd-native-tt' '--with-t1lib=/usr/local' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-zlib-dir=/usr' '--with-ttf' '--with-freetype-dir=/usr/local' '--with-openssl=/usr' '--with-gettext=/usr' '--with-mysql=/usr/local/mysql' '--with-ldap'


but I needed additional functionality for horde so I grabed the newest version and built it with the following:


./configure --prefix=/usr/local --with-apache=/home/ftp/pub/apache_1.3.26 --enable-exif --enable-track-vars --with-calendar=shared --enable-magic-quotes --enable-trans-sid --enable-wddx --enable-ftp --enable-inline-optimization --enable-memory-limit --with-gd=/usr/local --with-zlib --enable-gd-native-tt --with-t1lib=/usr/local --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-ttf --with-freetype-dir=/usr/local --with-openssl=/usr --with-gettext=/usr --with-mysql=/usr/local/mysql --with-ldap --with-xml --with-imap=/home/ftp/pub/imap-2002b --with-mcrypt --with-mcal=/home/ftp/pub/libmcal


When I do php info I still showing the previous version with no changes? You may notice that I don't have the orginal apache source that php was built with so I grabed another one complied it and then used it as the reference. I didn't think that would cause and issue but it may have?

Choozo
03-21-2003, 04:20 PM
Did you remember to include the '--activate-modules=src/modules/php4/libphp4.a' when recompiling apache again?

neotrace
03-21-2003, 06:20 PM
no i didn't, is there any other specifics that I should specify when building apache? Note, I'm not reinstalling apache but just using the source for the php to see.

Choozo
03-21-2003, 07:35 PM
No, just use the same config arguments you used when compiling apache the first time including the -activate-modules part.
Then do make and make install for apache.

I don't know if there are ways around recompiling apache, but you may check into building PHP as a module to apache (mod_php) instead.

neotrace
03-23-2003, 03:46 PM
Well since it seems that I would need to reinstall apache, i'm gonna do the dirty and upgrade to the 2.X release :-)

Choozo
03-23-2003, 03:58 PM
Don't be too surprised if you run into problems with Apache 2.x with PHP 4.3.x as there seem to be a few snags people encounter with that combo.

www.php.net and/or www.apache.org may have more info, or you may even find postings on this forum regarding this.

Cheers :)