Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-27-2006, 09:42 AM   PM User | #1
NancyJ
Senior Coder

 
NancyJ's Avatar
 
Join Date: Feb 2005
Location: Bradford, UK
Posts: 3,162
Thanks: 19
Thanked 65 Times in 64 Posts
NancyJ will become famous soon enough
Upgrading php 4.x to php 5 on apache 1.3

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?
__________________
http://www.hazelryan.co.uk
NancyJ is offline   Reply With Quote
Old 04-27-2006, 11:58 AM   PM User | #2
NancyJ
Senior Coder

 
NancyJ's Avatar
 
Join Date: Feb 2005
Location: Bradford, UK
Posts: 3,162
Thanks: 19
Thanked 65 Times in 64 Posts
NancyJ will become famous soon enough
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.
__________________
http://www.hazelryan.co.uk

Last edited by NancyJ; 04-27-2006 at 12:20 PM..
NancyJ is offline   Reply With Quote
Old 04-27-2006, 05:17 PM   PM User | #3
ralph l mayo
Regular Coder

 
ralph l mayo's Avatar
 
Join Date: Nov 2005
Posts: 951
Thanks: 1
Thanked 31 Times in 29 Posts
ralph l mayo is on a distinguished road
use 'locate httpd'

It's probably in /usr/sbin/httpd
ralph l mayo is offline   Reply With Quote
Old 04-27-2006, 05:21 PM   PM User | #4
fci
Senior Coder

 
Join Date: Aug 2004
Location: Twin Cities
Posts: 1,345
Thanks: 0
Thanked 0 Times in 0 Posts
fci is an unknown quantity at this point
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..)
fci is offline   Reply With Quote
Old 04-27-2006, 05:36 PM   PM User | #5
NancyJ
Senior Coder

 
NancyJ's Avatar
 
Join Date: Feb 2005
Location: Bradford, UK
Posts: 3,162
Thanks: 19
Thanked 65 Times in 64 Posts
NancyJ will become famous soon enough
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.
__________________
http://www.hazelryan.co.uk
NancyJ is offline   Reply With Quote
Old 04-27-2006, 05:37 PM   PM User | #6
NancyJ
Senior Coder

 
NancyJ's Avatar
 
Join Date: Feb 2005
Location: Bradford, UK
Posts: 3,162
Thanks: 19
Thanked 65 Times in 64 Posts
NancyJ will become famous soon enough
Quote:
Originally Posted by fci
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.
__________________
http://www.hazelryan.co.uk
NancyJ is offline   Reply With Quote
Old 04-27-2006, 06:04 PM   PM User | #7
fci
Senior Coder

 
Join Date: Aug 2004
Location: Twin Cities
Posts: 1,345
Thanks: 0
Thanked 0 Times in 0 Posts
fci is an unknown quantity at this point
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/.../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.
fci is offline   Reply With Quote
Old 04-27-2006, 07:03 PM   PM User | #8
NancyJ
Senior Coder

 
NancyJ's Avatar
 
Join Date: Feb 2005
Location: Bradford, UK
Posts: 3,162
Thanks: 19
Thanked 65 Times in 64 Posts
NancyJ will become famous soon enough
but that would be reinstalling apache, which I cant do incase it changes stuff I dont know about (not my server)
__________________
http://www.hazelryan.co.uk
NancyJ is offline   Reply With Quote
Old 04-28-2006, 03:43 AM   PM User | #9
firepages
Super Moderator


 
Join Date: May 2002
Location: Perth Australia
Posts: 3,942
Thanks: 7
Thanked 82 Times in 81 Posts
firepages will become famous soon enough
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.
__________________
resistance is...

MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

Last edited by firepages; 04-28-2006 at 03:46 AM..
firepages is offline   Reply With Quote
Old 04-28-2006, 08:28 AM   PM User | #10
NancyJ
Senior Coder

 
NancyJ's Avatar
 
Join Date: Feb 2005
Location: Bradford, UK
Posts: 3,162
Thanks: 19
Thanked 65 Times in 64 Posts
NancyJ will become famous soon enough
redhat 9 - and no we dont have yum Wish it was debian (like my shiny new server 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
__________________
http://www.hazelryan.co.uk
NancyJ is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:08 AM.


Advertisement
Log in to turn off these ads.