Project

General

Profile

13-Jul-2011 novatest01 log
(S. Kasahara)

Performed update from PHP 5.1.6 to 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.

This didn't all go right on the first try - what follows is the cleaned up version.

  • Log in as root and save current versions of php.ini and libphp5.so:
    • ssh -X novatest01 -l root
    • cp /etc/php.ini /etc/php.ini.20110713
    • cp /usr/local/apache2/modules/libphp5.so /usr/local/apache2/modules/libphp5.so.20110713
  • Configure php for installation. Include options to build mysql and GD support and
    explicitly request to use libiconv installation in ups:
    • source /nova/novadaq/setup/setup_novadaq_nt1.sh
      (this is just to setup libiconv in ups)
    • ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-iconv-dir=$LIBICONV_DIR --with-config-file-path=/etc --with-gd
    • (edit Makefile to add -liconv to EXTRA_LIBS list)
    • make
    • make install
    • cp php.ini-production /etc/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.)
  • /usr/local/apache2/conf/httpd.conf contained an extra load of libphp5 after "make install" so remove it:
    • cd /usr/local/apache2/conf
    • (edit httpd.conf to remove "LoadModule php5_module modules/libphp5.so")
  • Restart apache:
    • /etc/init.d/apache2 restart