View Full Version : Can php4 script run under php5?
jt2377
11-02-2006, 09:01 PM
if i upgrade my box FreeBSD 5.4/DirectAdmin from php4 to php5, would php4 scripts run under php5?
Chrysalis
11-03-2006, 06:12 AM
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.
jt2377
11-03-2006, 06:36 PM
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
chatwizrd
11-04-2006, 02:06 PM
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
jt2377
11-04-2006, 08:45 PM
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
Chrysalis
11-05-2006, 01:22 AM
check pkg_info is this listed?
libxml2-2.6.26 XML parser library for GNOME
jt2377
02-19-2007, 07:57 PM
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
Chrysalis
02-21-2007, 05:56 PM
cd /usr/ports/textproc/libxml2
make install clean
then build php as normal.
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.