...

View Full Version : Upgrading php 4.x to php 5 on apache 1.3



NancyJ
04-27-2006, 10:42 AM
I'm about to attempt to upgrade our live web server to php5 but I dont want to **** it up so does anyone have any advice, words of warning for me before I do it?

NancyJ
04-27-2006, 12:58 PM
Well good news and bad news
The bad news is it didnt work, the good news is that the websites are all still up and running,

This is so frustrating. Nothing on this server is where it should be, theres no apxs, its running apache2 but called httpd. The apache docs say to enter httpd -l to test apxs but the server says httpd command not found. I'm absolutely stumped as to what to do now.

ralph l mayo
04-27-2006, 06:17 PM
use 'locate httpd'

It's probably in /usr/sbin/httpd

fci
04-27-2006, 06:21 PM
apxs isn't always installed by default, what do you mean by "it didn't work" you haven't really given us anything to work with except that apxs isn't installed (which is not too uncommon depending on the distro..)

NancyJ
04-27-2006, 06:36 PM
I've pretty much given up, decided to use a backport of simplexml and stay on php 4.
I dont want to reinstall apache because I have no idea what it was configured with originally, but I dont see any other way to get apxs and without apxs I cant get libphp5.so :(
Apache seems to be tangled up in webmin in a bizarre way.

NancyJ
04-27-2006, 06:37 PM
apxs isn't always installed by default, what do you mean by "it didn't work" you haven't really given us anything to work with except that apxs isn't installed (which is not too uncommon depending on the distro..)
apxs not being installed IS the problem. Not really much else to say there.

fci
04-27-2006, 07:04 PM
so, you are compiling? using a package(and so on..)? what are you doing? if your server has package management, try to find something as mentioned here:
http://lists.debian.org/debian-user/2005/03/msg02956.html

for the server here we had to install httpd-devel-2.0.52-22.ent .. so, find the apache/httpd development package which will have apxs.

NancyJ
04-27-2006, 08:03 PM
but that would be reinstalling apache, which I cant do incase it changes stuff I dont know about (not my server)

firepages
04-28-2006, 04:43 AM
redhat/debian/?? else we guessing

you dont need to recompile apache if it has mod_so
(httpd -l lists compiled in modules (or `apache -l` or `apachectl -l`)
but as mentioned you need the apache development package..

On debian ..
apt-get install apache-1.3-devel (but with the right apache version)

For redhat I would use yum but that is not always installed by default
If you have webmin then webmin can install RPM's for you.

but apache-devel is only half the issue , if your current PHP version is also a RPM/binary package then you will need a lot of other libs to compile PHP + extensions.

The safest bet is to see if there is an existing php5 RPM for your platform and install that.

NancyJ
04-28-2006, 09:28 AM
redhat 9 - and no we dont have yum :( Wish it was debian (like my shiny new server :D then this would be so easy)
I havent found any packages for redhat 9 and anyone who asks seems to get told RH9 is dead upgrade to something better :rolleyes:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum