Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,172
    Thanks
    19
    Thanked 65 Times in 64 Posts

    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?

  • #2
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,172
    Thanks
    19
    Thanked 65 Times in 64 Posts
    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.
    Last edited by NancyJ; 04-27-2006 at 12:20 PM.

  • #3
    Regular Coder ralph l mayo's Avatar
    Join Date
    Nov 2005
    Posts
    951
    Thanks
    1
    Thanked 31 Times in 29 Posts
    use 'locate httpd'

    It's probably in /usr/sbin/httpd

  • #4
    fci
    fci is offline
    Senior Coder
    Join Date
    Aug 2004
    Location
    Twin Cities
    Posts
    1,345
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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..)

  • #5
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,172
    Thanks
    19
    Thanked 65 Times in 64 Posts
    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.

  • #6
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,172
    Thanks
    19
    Thanked 65 Times in 64 Posts
    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.

  • #7
    fci
    fci is offline
    Senior Coder
    Join Date
    Aug 2004
    Location
    Twin Cities
    Posts
    1,345
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #8
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,172
    Thanks
    19
    Thanked 65 Times in 64 Posts
    but that would be reinstalling apache, which I cant do incase it changes stuff I dont know about (not my server)

  • #9
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,040
    Thanks
    10
    Thanked 92 Times in 90 Posts
    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.
    Last edited by firepages; 04-28-2006 at 03:46 AM.
    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)

  • #10
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,172
    Thanks
    19
    Thanked 65 Times in 64 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •