October 10, 2003

Updating PHP

Since we now have a new version of MySQL (where before we didn't!), we need to recompile PHP. But if this is the case we might as well upgrade to the latest version. For security's sake we will also upgrade openSSL, which in turn means we should upgrade Apache. (See how Linux becomes a problem?)

  1. First, lets update openSSL. Get the files.
    wget http://www.openssl.org/source/openssl-0.9.7c.tar.gz
    Unzip and untar using
    gunzip openssl-0.9.7c.tar.gz tar xvf openssl-0.9.7c.tar
    Configure it to run in /usr/local/openssl-0.9.7c by running
    ./Configure threads shared --prefix=/usr/local/openssl-0.9.7c --openssldir=/usr/local/openssl-0.9.7c linux-elf
    and then
    make make install
  2. Next, we will upgrade Apache. We first remove it from the distribution (scary!) using rpm -e
    [root@brainwave rpm]# rpm -e httpd error: Failed dependencies: httpd-mmn = 20020628 is needed by (installed) mod_perl-1.99_07-5 httpd-mmn = 20020628 is needed by (installed) mod_python-3.0.1-3 httpd-mmn = 20020628 is needed by (installed) mod_ssl-2.0.40-21.5 httpd-mmn = 20020628 is needed by (installed) php-4.2.2-17.2 libapr.so.0 is needed by (installed) mod_perl-1.99_07-5 libaprutil.so.0 is needed by (installed) mod_perl-1.99_07-5 webserver is needed by (installed) webalizer-2.01_10-11 httpd >= 2.0.40 is needed by (installed) mod_perl-1.99_07-5 httpd >= 2.0.40 is needed by (installed) mod_python-3.0.1-3 httpd is needed by (installed) redhat-config-httpd-1.0.1-18 httpd is needed by (installed) mod_ssl-2.0.40-21.5
    Oops, err maybe we don't.
Posted by torque at October 10, 2003 3:49 PM | TrackBack
Comments

rpm --nodep -e httpd

;)

Posted by: Eric at November 18, 2003 10:50 PM

Good job!

Posted by: Markus at December 12, 2006 11:17 PM
Post a comment









Remember personal info?