Can php4 script run under php5?

jt2377

Verified User
Joined
Dec 26, 2005
Messages
55
if i upgrade my box FreeBSD 5.4/DirectAdmin from php4 to php5, would php4 scripts run under php5?
 
most will and there is also compatability options which can be turned on to help.
 
From a long experience I have learned it is usually more of a problem to get PHP 5 scripts working on PHP 4 than the other way around, and I've practically never seen a script not working on PHP 5 when it did on PHP 4. The only thing that may cause problems for some (bad) scripts is register_globals being turned off by default, but this option can still be turned on in php.ini or emulated by the script itself.
 
i run into a problem trying to upgrade to php 5.

http://www.directadmin.com/forum/showthread.php?postid=51032

from the step that was posted

# cd /usr/local/directadmin/customapache/libmcrypt-2.5.7/libltdl
# ./configure --enable-ltdl-install
# make
# make install
# make clean

i do not have /usr/local/directadmin/customapache/libmcrypt-2.5.7/libltdl
# ./configure --enable-ltdl-install

directory should i untar it then make or what?

i'm a little confused there. i'm running FreeBSD 5.4

thank
 
Do this:

pkg_add -r libltdl15

or

cd /usr/ports/devel/libltdl15 && make install clean

If you find these dont work do this:

cd /usr/ports/devel/libltdl* && make install clean
 
this work for me - cd /usr/ports/devel/libltdl* && make install clean

but... i got an error

===> Installing for libltdl-1.5.22
===> Generating temporary packing list
===> Checking if devel/libltdl15 already installed
pkg_info: package bsdpan-mod_perl-1.29 has no origin recorded
===> libltdl-1.5.22 is already installed
You may wish to ``make deinstall'' and install this port again
by ``make reinstall'' to upgrade it properly.
If you really wish to overwrite the old port of devel/libltdl15
without deleting it first, set the variable "FORCE_PKG_REGISTER"
in your environment or the "make install" command line.
*** Error code 1

it seem like it's already installed but upgrading to php5 it complain it is not

i stil get the same error

Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation
 
Last edited:
check pkg_info is this listed?

libxml2-2.6.26 XML parser library for GNOME
 
check pkg_info is this listed?

libxml2-2.6.26 XML parser library for GNOME

it's a very late reply. i'm back to try upgrade to php 5 again.

/usr/local/sbin/pkg_info: not found

what do i do next?

thank
 
cd /usr/ports/textproc/libxml2
make install clean

then build php as normal.
 
Back
Top