18-Aug-2011 novadaq-ctrl-datamon log
(S. Kasahara)

Performed update from to PHP 5.3.6 on novatest01 for use with apache web server.
The goals were:
  1. Bring PHP up to a modern version to be compatible with latest version
    of ganglia web display
  2. Build PHP with GD support to enable pie charts in ganglia display.
  • Backup current version of apache2
    • mkdir /scratch/kasahara/apache2
    • rsync -az /usr/local/apache2 /scratch/kasahara/apache2/backup20110818
  • Log in as root and save current versions of /etc/php.ini just in case, although
    I don't intend to store new php.ini there.
    • ssh -X novadaq-ctrl-datamon -l root
    • cp /etc/php.ini /etc/php.ini.20110818
    • exit
  • Configure php for installation. Include options to build GD support and
    other options suggested on php installation site. --with-libdir=lib64 because otherwise
    png lib is not found.
    • ./configure --with-apxs2=/usr/local/apache2/bin/apxs --prefix=/usr/local/apache2/php --with-config-file=/usr/local/apache2/php --disable-cgi --with-zlib --with-gettext --with-gdbm --with-gd --with-libdir=lib64 >& configure.log &
    • make >& make.log &
    • make test
  • Install new version of php
    • ssh -X novadaq-ctrl-datamon -l root
    • cd /scratch/products/install/php/php-5.3.6
    • make install
    • cp php.ini-production /usr/local/apache2/php/php.ini
    • (edit php.ini to set date.timezone = "America/Chicago".
      This is to avoid repeated warnings in log file /usr/local/apache2/logs/httpd_redmine_ssl_log about
      not having this set.)
  • Restart apache:
    • /etc/init.d/apache2 restart