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.
Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  1. #1
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,174
    Thanks
    19
    Thanked 66 Times in 65 Posts

    Last ditch attempt to prolong the life of a dying RH9 server

    does anyone know where I can get php4.4 or php5 rpms (including all dependencies) for RedHat 9. I'm absolutely desperate.

  • #2
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,051
    Thanks
    10
    Thanked 94 Times in 92 Posts
    highest version I could see was 4.3 (and that was for RH8 though it should still work)

    http://rpm.pbone.net/index.php3/stat....i386.rpm.html

    ....else looks like you are gonna have to compile from source.
    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)

  • #3
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,174
    Thanks
    19
    Thanked 66 Times in 65 Posts
    OK, compiled from source and installed apache 2.0.58 and now apache wont start - in deep **** here

    I get this error
    Starting httpd: httpd: module "/usr/src/build/274778-i386/BUILD/php-4.2.2/sapi/apache2filter/sapi_apache2.c" is not compatible with this version of Apache (found 20020628, need 20020903).
    Please contact the vendor for the correct version.
    [FAILED]

    everything I've read says to install with --apxs2=/path/to/apxs but I did that so now I've got no libphp5.so and apache wont start.
    Thing is I didnt remove my apache install, so that if anything went wrong I could still start the old version and that was working fine, both versions of apache were working but one didnt have php on it so I could still switch between them, when I installed php, neither will start - both with the same error.

  • #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
    looks like that php source is too old.. try a newer version, or downgrade apache

  • #5
    Regular Coder ralph l mayo's Avatar
    Join Date
    Nov 2005
    Posts
    951
    Thanks
    1
    Thanked 31 Times in 29 Posts
    I don't understand why you can do all this stuff to the server but not upgrade it to a reasonably recent release of fedora core with yum. That's really the easy fix here afaics.

  • #6
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,174
    Thanks
    19
    Thanked 66 Times in 65 Posts
    upgrading the entire os isnt that simple

  • #7
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,174
    Thanks
    19
    Thanked 66 Times in 65 Posts
    I've removed all versions of apache and php and trying to reinstall but when I compile apache2 --enable-so it doesnt install apxs which I need to isntall php 5

  • #8
    Regular Coder ralph l mayo's Avatar
    Join Date
    Nov 2005
    Posts
    951
    Thanks
    1
    Thanked 31 Times in 29 Posts
    Quote Originally Posted by NancyJ
    upgrading the entire os isnt that simple
    It's not too bad with yum, although I've never tried with a distro as old as yours:
    http://www.brandonhutchinson.com/Upg..._with_yum.html

    It's probably easier still to save home directories and docroot and do a fresh install. Consider that RHEL9 is never going to get any better supported. When you need PHP 6 or new apache patches or whatever you're going to go through the same thing again, but it'll get progressively harder as more dependency versions grow past that supported in RHEL9.

  • #9
    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 after you run make(before the install) and you do something like `find . -name apxs` it isn't there?.. post what you're using to configure.. I'll test it on a lo

  • #10
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,174
    Thanks
    19
    Thanked 66 Times in 65 Posts
    Just installed xampp - all back up and running - I could kiss those apachefriends guys!

  • #11
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,174
    Thanks
    19
    Thanked 66 Times in 65 Posts
    One last thing - how do I make it autorun when the server reboots...
    I want to run the command /opt/lampp/lampp startapache

  • #12
    fci
    fci is offline
    Senior Coder
    Join Date
    Aug 2004
    Location
    Twin Cities
    Posts
    1,345
    Thanks
    0
    Thanked 0 Times in 0 Posts
    probably put a script in /etc/init.d that is executable, here is an example one from /etc/init.d/httpd, xampp probably has something like this..:
    Code:
    #!/bin/bash
    #
    # Startup script for the Apache Web Server
    #
    # chkconfig: - 85 15
    # description: Apache is a World Wide Web server.  It is used to serve \
    #              HTML files and CGI.
    # processname: httpd
    # pidfile: /var/run/httpd.pid
    # config: /etc/httpd/conf/httpd.conf
    
    # Source function library.
    . /etc/rc.d/init.d/functions
    
    if [ -f /etc/sysconfig/httpd ]; then
            . /etc/sysconfig/httpd
    fi
    
    # This will prevent initlog from swallowing up a pass-phrase prompt if
    # mod_ssl needs a pass-phrase from the user.
    INITLOG_ARGS=""
    
    # Path to the apachectl script, server binary, and short-form for messages.
    apachectl=/usr/sbin/apachectl
    httpd=/usr/sbin/httpd
    prog=httpd
    RETVAL=0
    
    # check for 1.3 configuration
    check13 () {
            CONFFILE=/etc/httpd/conf/httpd.conf
            GONE="(ServerType|BindAddress|Port|AddModule|ClearModuleList|"
            GONE="${GONE}AgentLog|RefererLog|RefererIgnore|FancyIndexing|"
            GONE="${GONE}AccessConfig|ResourceConfig)"
            if grep -Eiq "^[[:space:]]*($GONE)" $CONFFILE; then
                    echo
                    echo 1>&2 " Apache 1.3 configuration directives found"
                    echo 1>&2 " please read /usr/share/doc/httpd-2.0.40/migration.html"
                    failure "Apache 1.3 config directives test"
                    echo
                    exit 1
            fi
    }
    
    # The semantics of these two functions differ from the way apachectl does
    # things -- attempting to start while running is a failure, and shutdown
    # when not running is also a failure.  So we just do it the way init scripts
    # are expected to behave here.
    start() {
            echo -n $"Starting $prog: "
            check13 || exit 1
            daemon $httpd $OPTIONS
            RETVAL=$?
            echo
            [ $RETVAL = 0 ] && touch /var/lock/subsys/httpd
            return $RETVAL
    }
    stop() {
            echo -n $"Stopping $prog: "
            killproc $httpd
            RETVAL=$?
            echo
            [ $RETVAL = 0 ] && rm -f /var/lock/subsys/httpd /var/run/httpd.pid
    }
    reload() {
            echo -n $"Reloading $prog: "
            check13 || exit 1
            killproc $httpd -HUP
            RETVAL=$?
            echo
    }
    
    # See how we were called.
    case "$1" in
      start)
            start
            ;;
      stop)
            stop
            ;;
      status)
            status $httpd
            RETVAL=$?
            ;;
      restart)
            stop
            start
            ;;
      condrestart)
            if [ -f /var/run/httpd.pid ] ; then
                    stop
                    start
            fi
            ;;
      reload)
            reload
            ;;
      graceful|help|configtest|fullstatus)
            $apachectl $@
            RETVAL=$?
            ;;
      *)
            echo $"Usage: $prog {start|stop|restart|condrestart|reload|status|fullstatus|graceful|help|configtest}"
            exit 1
    esac
    
    exit $RETVAL

  • #13
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,174
    Thanks
    19
    Thanked 66 Times in 65 Posts
    so if I just copy the /opt/lampp/lampp to etc/init.d that would automatically run that? but I dont to start it I just want to start the apache part of it.

  • #14
    fci
    fci is offline
    Senior Coder
    Join Date
    Aug 2004
    Location
    Twin Cities
    Posts
    1,345
    Thanks
    0
    Thanked 0 Times in 0 Posts
    mmm, actually, take a look to see if a file called /etc/rc.local exists, if it exists, just append the command you want to be executed from it.
    and, I may be slightly wrong with the advice I posted earlier(I am now looking at a Redhat box at work and see that you would probably symlink /etc/rc.d/rc3.d/S15httpd to /etc/init.d/httpd.. (I was thinking of FreeBSD earlier..)

    and, I found this on google:
    http://www.apachefriends.org/f/viewtopic.php?t=17460
    Last edited by fci; 05-04-2006 at 05:57 PM.

  • #15
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,174
    Thanks
    19
    Thanked 66 Times in 65 Posts
    I just added the /opt/lampp/lampp startapache to rc.local and it seems to be working OK.
    Now if only fixing the mail server was as easy. Somewhere access is being blocked to the smtp port from the office (works fine at home) and everyone is denying responsibility, our isp, our network guy and the data centre guys where the server lives. So frustrating


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

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