How to Upgrade PHP4 to PHP 5.2.0 on Apache 1.3.37

tolik777

New member
Joined
Dec 13, 2006
Messages
4
Location
RUS
Hello.
I have next configuration: PHP 4.4.4, Apache 1.3.37, Zend Optimizer 3.2.0.
How I can upgrade PHP 4.4.0 to PHP 5.2.0?
I don't understand make, install and other linux comand. May be easy way with ./build php?

P.S. Sorry for my bad English.
 
cd /usr/local/directadmin/customapache
rm -f configure.php
./build clean
./build update
nano -w ./build - change php version number

wget http://ch2.php.net/get/php-5.2.0.tar.gz/from/us2.php.net/mirror
tar xzf php-5.2.0.tar.gz
cd php-5.2.0
/usr/local/directadmin/customapache/configure.php
make
make install
nano -w /etc/httpd/conf/httpd.conf

Coment out

#<IfDefine HAVE_PHP4>
#LoadModule php4_module modules/libphp4.so
#</IfDefine>
#LoadModule php4_module /usr/lib/apache/libphp4.so

###<IfDefine HAVE_PHP4>
#AddModule mod_php4.c
###</IfDefine>

Change

<IfModule mod_php4.c> to
<IfModule mod_php5.c>

/etc/rc.d/init.d/httpd restart

Follow the directions for Zend from the Zend site. Basically you download it and run the installer.
 
That means libxml2 is not installed.

Assuming you have redhat, fedora, or centos (you have not told us anything about your system):

yum install libxml2-devel libxml2
 
[root@www /]# /etc/rc.d/init.d/httpd start
Starting httpd: [ OK ]
[root@www /]# /etc/rc.d/init.d/httpd status
httpd dead but subsys locked


and now?
 
That could be many things. What does the error log and the messages log say for that time period?
 
Yes, I follow this instruction: http://www.directadmin.com/help/item.php?id=135
but have next error:
checking libxml2 install dir... no

configure: error: xml2-config not found. Please check your libxml2 installation.

*** There was an error while trying to configure php. Check the configure.php file

For Debian users, use:

Code:
apt-get install libxml2

and

Code:
 apt-get install libxml2-dev

Regards, Jeroen.
 
I did all the steps above it all works till i run the configure.php

I am running on CentOS 4.4
With apache 2 installed ..

Error:
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... configure: error: You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropiate switch --with-apxs2

Any1?
 
u mean configure.php --with-apxs2?

I did that same results..

Or do i need to build with: "--with-apxs2"?
 
Do:
Code:
./build php_ap2 n

Instead of just "./build php".
 
Back
Top