Ok, firstly like many that have probably already posted similar questions to the pro's on here, I am a newbee - I can manage to follow instructions as far as SSH etc goes, but thats about it for me.
I am trying to upgrade my PHP on the Linux server (CentOS) to above version 5.2.4 in order to support the latest Wordpress version - currently PHP 5.1.6 is on there.
I have got as far as getting downloaded tar.gz files onto the server and located in the /usr/src/ directories - I have 5.3.3 & 5.3.6 on there - & already done the
Code:
# gunzip < php-5.3.3.tar.gz | tar xvf -
&
Code:
# gunzip < php-5.3.6.tar.gz | tar xvf -
but when I go to the folders
Code:
# cd /usr/src/php-5.3.3
and try to run the ./configure I get errors, below is what I suspect is causing the errors, but as you may have guessed I am no expert...
Code:
Configuring extensions
checking size of long... (cached) 8
checking size of int... (cached) 4
checking for int32_t... yes
checking for uint32_t... yes
checking for sys/types.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for strtoll... yes
checking for atoll... yes
checking for strftime... (cached) yes
checking which regex library to use... php
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@server77-68-104-85 php-5.3.3]#
I have tried
Code:
./configure --with-mysql --with-xml2
but with no joy... (I am guessing the --with-xml2 bit)
Can anyone guide me? or do you need more information?