Project

General

Profile

08-Oct-2011 novatest01 log

  • ssh -X novatest01 -l root
  • mkdir /nova/products
  • cd /nova/products
  • mkdir install
  • cd install
  • mkdir php
  • cd php
  • tar xvf php-5.3.8.tar.bz2
  • cd /nova/products/install
  • mkdir apache
  • cd apache
  • tar xvf httpd-2.2.21.tar.gz
  • cd httpd-2.2.21
  • ./configure --prefix=/usr/apache --enable-so --enable-cgi --enable-info --enable--rewrite --enable-speling --enable-usertrack --enable-deflate --enable-ssl --enable-mime-magic --with-included-apr
  • make >& make.log
  • make install
  • pwd
  • cd ../../php
  • cd php-5.3.8
  • source /nova/novadaq/setup/setup_novadaq_nt1.sh
    (to set up path to mysql)
  • ./configure --with-apxs2=/usr/apache/bin/apxs --with-mysql=$MYSQL_HOME --prefix=/usr/apache/php --with-config-file-path=/usr/apache/php --disable-cgi --with-zlib --with-gettext --with--gdbm --with-gd
  • make >& make.log &
  • make install
  • cp php.ini-production /usr/apache/php/php.ini
  • cd /usr/apache/php
  • (edit php.ini to set data.timezone = "America/Chicago")
  • cd /usr/apache/conf
  • openssl genrsa -des3 -out server.key 1024
  • openssl req -new -key server.key -out server.csr
  • cp server.key server.key.org
  • openssl rsa -in server.key.org -out server.key
  • openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt
  • (edit httpd.conf to add:
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps

    and change:

    DirectoryIndex index.html index.html.var
    to:
    DirectoryIndex index.html index.html.var index.php
    )
  • /usr/apache/bin/apachectl start