php4 to php5 Upgrade Error

Cr8t1ve

Verified User
Joined
Aug 29, 2007
Messages
5
I am trying to upgrade php from v4 to 5.2.2

I used the guide here http://www.directadmin.com/help/item.php?id=135
and I get the following error which doesnt really tell me whats wrong... does anyone have any ideas?

error:
[root@server1 php-5.2.2]# /usr/local/directadmin/customapache/configure.php
creating cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
configure: error: can not find install-sh or install.sh in /.. /../..


Thanks
 
Go to customapache dir:
Code:
cd /usr/local/directadmin/customapache
Remove old configure file:
Code:
rm -f configure.php
Clean builds:
Code:
./build clean
update build script
Code:
./build update

Edit the build file
Code:
nano -w ./build
Change the php version (4.4.x?) to the new number: 5.2.3) CTRL+X, Y to exit and save

download latest php core:
Code:
wget http://nl3.php.net/get/php-5.2.3.tar.gz/from/this/mirror
Unpack and install:
Code:
tar xzf php-5.2.3.tar.gz
Code:
cd php-5.2.3
Code:
/usr/local/directadmin/customapache/configure.php
Code:
make
Code:
make install

Edit httpd config:
Code:
nano -w /etc/httpd/conf/httpd.conf

Search for <IfDefine HAVE_PHP4> and commentout those lines (place a # in front of the line) like:

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

Also do that to:

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


SEARCH for <IfModule mod_php4.c> and change that to
<IfModule mod_php5.c>

CTRL+X,Y to exit saving the file

Code:
service httpd restart
or
Code:
/etc/rc.d/init.d/httpd restart

Good luck, worked like a charm for me!
 
Last edited:
Thanks for the help but....

Thank you for your help although thats the same guide I followed with the exception of it having a newer version of PHP.

The original problem still remains.... when I try to run configure.php

I get this error with basically no helpful error message....

Code:
[root@server1 php-5.2.3]# /usr/local/directadmin/customapache/configure.php
loading cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
configure: error: can not find install-sh or install.sh in  /.. /../..

Any ideas what this can be from????
 
Back
Top