Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

PURPOSE

In some environments, security scanning software may indicate that versions of Apache and PHP shipped with Uptime Infrastructure Monitor may contain vulnerabilities. Although a future version of Uptime Infrastructure Monitor will include updated versions of these applications, you may wish to manually update them using these instructions.

...

 

The following steps can be used to upgrade Apache and PHP for Uptime Infrastructure Monitor 7.7+.

  • Only minor upgrades are supported.
  • PHP can be upgraded to 5.4.x (not 5.5+)

...

  • .

To manually update Apache and PHP on Linux

  1. Stop

INSTRUCTIONS

  1. stop Uptime Infrastructure Monitor web service.
    Code Block
    languagesql
    /etc/init.d/uptime_httpd stop
  2. back Back up apache directory.
    Code Block
    languagesql
    cd /usr/local/uptime 
    mv apache apache_orig
  3. download Download and install re2c (PHP dependency).
    Code Block
    languagesql
    cd /tmp

...

  1. 
    wget ftp://rpmfind.net/linux/dag/redhat/el6/en/x86_64/dag/RPMS/re2c-0.13.5-1.el6.rf.x86_64.rpm 
    rpm

...

  1.  -ivh re2c-0.13.5-1.el6.rf.x86_64.rpm
  2. download Download and install install PCRE (Apache dependency).
    Code Block
    languagesql
    cd /tmp

...

  1. 
    wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.39.tar.bz2

...

  1.  
    tar xvfj pcre-8.39.tar.bz2

...

  1. 
    cd pcre-8.39

...

  1. 
    ./configure 
    make

...

  1. 
    make install
  2. install Install openssl devel package (Apache dependency), libxml, libxml2 devel package, mysql devel package (PHP dependency), and gcc (required for compiling).
    Code Block
    languagesql
    yum install openssl-devel mysql-devel libxml2 libxml2-devel gcc
  3. download Download and install Apache.
    Code Block
    languagesql
    cd /tmp

...

  1. 
    wget http://apachemirror.ovidiudan.com//httpd/httpd-2.4.23.tar.bz2 
    tar xvfj httpd-2.4.23.tar.bz2

...

  1. 
    cd httpd-2.4.23/srclib

...

  1. 
    wget http://apache.mirror.gtcomm.net//apr/apr-1.5.2.tar.bz2 
    tar xvfj apr-1.5.2.tar.bz2

...

  1. 
    mv apr-1.5.2 apr

...

  1. 
    wget http://apache.mirror.gtcomm.net//apr/apr-util-1.5.4.tar.bz2 
    tar xvfj apr-util-1.5.4.tar.bz2

...

  1. 
    mv apr-util-1.5.4 apr-util 
    cd ..

...

  1. 
    ./configure -prefix=/usr/local/uptime/apache --with-mpm=worker --enable-so --enable-proxy --enable proxy-connect --enable-proxy-ftp --enable-proxy-http --enable-headers --enable-rewrite --enable-status  enable-info --enable-deflate --enable-mem-cache --enable-cache --enable-disk-cache --enable-expires  enable-mods-shared=all --enable-ssl --enable-cgi --enable-xsendfile

...

  1. 
    make

...

  1. 
    make install
  2. download Download and install xsendfile Apache module.
    Code Block
    languagesql
    cd /tmp

...

  1. 
    wget https://tn123.org/mod_xsendfile/mod_xsendfile-0.12.tar.bz2

...

  1.  --no-check-certificate 
    tar xvfj mod_xsendfile-0.12.tar.bz2

...

  1. 
    /usr/local/uptime/apache/bin/apxs -cia mod_xsendfile-0.12/mod_xsendfile.c
  2. download Download and install php.
    Code Block
    languagesql
    wget http://ca2.php.net/get/php-5.4.45.tar.bz2/from/this/mirror tar xvfj php-5.4.45.tar.bz2

...

  1. 
    cd php-5.4.45

...

  1. 
    ./configure -prefix=/usr/local/uptime/apache --with-apxs2=/usr/local/uptime/apache/bin/apxs --with mysql --with-libdir=lib64

...

  1. 
    make

...

  1. 
    make install
  2. move Move Uptime Infrastructure Monitor Apache config files into new Apache directory.
    Code Block
    languagesql
    cd /usr/local/uptime

...

  1. 
    mv apache/conf apache/conf_orig 
    cp -R apache_orig/conf apache
  2. create Create tmp directory and set file ownerships.
    Code Block
    languagesql
    mkdir apache/tmp

...

  1. 
    chown -R uptime:uptime apache
  2. (optional) if Optional. If PHP packages are required, use pear; examples below.
    Code Block
    languagesql
    cd apache/bin

...

  1. 
    ./pear install MDB2

...

  1. 
    ./pear install pear/MDB2#mysql
  2. start Start the Apache service and browse to the Uptime UI to verify the upgrade was successful.
    Code Block
    languagesql
    /etc/init.d/uptime_httpd start

    1. in In the Uptime UI, click the down arrow beside the Help button in the top right corner, and select "About Uptime".
    2. Roughly in the middle of the page that pops up, you can verify the current version of Apache, PHP, and OpenSSL This completes the upgrade.

...