Upgrading PHP

Deftone

Verified User
Joined
Oct 29, 2006
Messages
25
Dear users,

I try to update my php to 5.1.6 but when I follow the toutorial I'm not getting anywhere.
I do as follow:

- Download php to a temporary directory (http://www.php.net/downloads.php)
- cd [the temporary directory]
- tar zxvf php-5.0.x.tar.gz
- cd php-5.0.x
- /usr/local/directadmin/customapache/configure.php ( _ap2 for Apache2)
- make
- make install

But when I type make I get the following error on my ssh:
make: *** No targets specified and no makefile found. Stop.

What I do wrong?
I'm using Apache 1.3.37
 
Here is the hole 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.
[root@rblaat php-5.1.6]# make
make: *** No targets specified and no makefile found. Stop.
 
Deftone said:
configure: error: xml2-config not found. Please check your libxml2 installation.
Apparantly you are trying to compile PHP with DOM XML support, for which you need the the GNOME XML Library libxml2 installed.
You could install that or remove the --with-dom directive from the configure command.
 
You could install that or remove the --with-dom directive from the configure command.
I doen,t have that in my configure

--enable-ssl \
--prefix=/etc/httpd \
--exec-prefix=/etc/httpd \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--sysconfdir=/etc/httpd/conf \
--enable-module=all \
--enable-rewrite \
--enable-suexec \
--with-suexec-docroot=/ \
--with-suexec-caller=apache \
--with-suexec-userdir=public_html \
--with-suexec-logfile=/var/log/httpd/suexec_log \
--with-suexec-bin=/usr/sbin/suexec \
--includedir=/usr/include/apache \
--libexecdir=/usr/lib/apache \
--datadir=/var/www \
--localstatedir=/var \
--disable-auth-dbm --disable-auth-db
 
I was having libxml2-related trouble (in configure). I upgraded that library and configure stopped complaining, but I'm getting an error in the make phase (in the very end, when it's trying to link):

/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1

I tried disabling or enabling a few modules in configure.php but the result was always this one: it can't find libtdl. What's this lib? What does it do? Why can't it be found? Where can I get it, if you know? :P
 
This problem seems to be caused by mcrypt. I removed mcrypt and php worked fine. Does anyone know how to fix this?
 
configure: error: xml2-config not found

configure: error: xml2-config not found.

The solution to the xml2-config error that occurs when running:

Code:
#/usr/local/directadmin/customapache/configure.php_ap2

Is to install libxml2-devel.

This to can be done by on most RedHat and CentOS installations by using:

Code:
#up2date libxml2-devel
 
Protected said:
This problem seems to be caused by mcrypt. I removed mcrypt and php worked fine. Does anyone know how to fix this?
How do i remove mcrypt ?
 
Back
Top