Having problems installing php 4.3.10

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View


I had php 4.2.2 installed from the RH9.0 rpm. I have intsalled now php
4.3.10 but still points to the older version, how do i change this. I
copied the php.ini-recommneded file to etc/php.ini. Am i doing
something wrong?
I did the php 4.3.10 installtion with the
../configure --prefix=/usr/local/php-4.3.10 \
--with-config-file-path=/etc \
--with-config-file-scan-dir=/etc/php.d \
--enable-force-cgi-redirect \
--disable-debug --enable-pic --disable-rpath
--enable-inline-optimization \
--with-bz2 --with-db3 --with-curl --with-dom=/usr \
--with-freetype-dir=/usr --with-png-dir=/usr --with-gd \
--enable-gd-native-ttf --with-ttf --with-gdbm --with-gettext \
--with-ncurses --with-gmp --with-iconv --with-jpeg-dir=/usr \
--with-openssl --with-png --with-pspell --with-regex=system \
--with-xml --with-expat-dir=/usr --with-zlib --with-layout=GNU \
--enable-bcmath --enable-exif --enable-ftp --enable-magic-quotes \
--enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysvshm \
--enable-discard-path --enable-track-vars --enable-trans-sid \
--enable-wddx --without-oci8 \
--with-imap=shared --with-imap-ssl --with-kerberos=/usr/kerberos \
--with-ldap=shared \
--with-mysql=shared,/usr \
--with-pgsql=shared \
--with-snmp=shared,/usr --enable-ucd-snmp-hack \
--with-unixODBC=shared --enable-memory-limit --enable-bcmath \
--enable-shmop --enable-versioning --enable-calendar --enable-dbx \
--enable-dio --enable-mcal --with-apxs2=/usr/sbin/apxs
--with-gd=/usr/local/src/gd-2.0.6 \
--with-freetype-dir=/usr \
--enable-gd-native-ttf \
--enable-gd-imgstrttf \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \

I had no luck, could you point me in the right direction.
Thanks and much appreciated.

Re: Having problems installing php 4.3.10

Quoted text here. Click to load it

By using the option --prefix=/usr/local/php-4.3.10 you had PHP build the CGI
binary and place it in /usr/local/php-4.3.10/bin/php. However, your system
is using the PHP located in another directory in your PATH. To find out
where it is, just do
    which php
and it will tell you where it is. You can then:
    1. rename/delete the old PHP binary, make a symlink from the new binary
in /usr/local/php-4.3.10/bin/php to where ever the old PHP binary was
    2. rename/delete the old PHP binary and add /usr/local/php-4.3.10 to
your system path.
    3. recompile PHP with the correct prefix to match your existing install
and it will overwrite the old PHP binary


Site Timeline