Note: Software listed is available on the MAP Support repository on Trogdor.mit.edu.

  1. Download the following files from the MAP Support repository onto the system being setup:
    cd /root
    scp root@trogdor:/opt/software-repository-tmp/ZEND_Core/ZendCore-2.5.0-linux-glibc21-i386.tar.gz \
       root@trogdor:/opt/software-repository-tmp/Java/jdk-6-linux-i586.bin  \
       root@trogdor:/opt/software-repository-tmp/Java/java_home.sh   \
       root@trogdor:/opt/software-repository-tmp/MySQL/MySQL-client-community-5.0.45-0.rhel5.i386.rpm  \
       root@trogdor:/opt/software-repository-tmp/MySQL/MySQL-server-community-5.0.45-0.rhel5.i386.rpm  \
       root@trogdor:/opt/software-repository-tmp/MySQL/MySQL-shared-community-5.0.45-0.rhel5.i386.rpm  \
       root@trogdor:/opt/software-repository-tmp/MySQL/MySQL-test-community-5.0.45-0.rhel5.i386.rpm  \
       root@trogdor:/opt/software-repository-tmp/MySQL/my.cnf  \
       root@trogdor:/opt/software-repository-tmp/common-init/web  /root
    
  2. Set up Java, and the Java home var.
    chmod u+x /root/jdk-6-linux-i586.bin
    cd /usr/local
    /root/jdk-6-linux-i586.bin
    
  3. Setup MySQL on the server.
    1. If a version of MySQL previous to 5.0 was installed, remove it from the server.
      /etc/init.d/mysqld stop
      grep mysql /var/log/rpmpkgs
      rpm -e [relevant packages]
      
    2. If MySQL was not included, install it from RPM.
      rpm -ivh MySQL-shared-community-5.0.45-0.rhel5.i386.rpm
      rpm -ivh MySQL-server-community-5.0.45-0.rhel5.i386.rpm
      rpm -ivh MySQL-client-community-5.0.45-0.rhel5.i386.rpm
      rpm -ivh MySQL-test-community-5.0.45-0.rhel5.i386.rpm
      
      • If you have to massage the install of MySQL to get it to start, edit the init file to replace the chown lines to be db:db instead of mysql:mysql, and 'chown -R db:db /var/run/mysql /home/db'.
    3. Edit the my.cnf file, and copy it in /etc. Make certain the default engine in INNODB, the home directory in /home/db/mysql, the user is db, and the SSL setting are set, if they are needed (usually, they are not).
      cd /root
      vi my.cnf
      cp /root/my.cnf /etc/my.cnf
      
    4. Update the DB home directory.
      chown -R db:db /home/db
      
    5. Start the MySQL service.
      /etc/init.d/mysqld start
      
  4. Perform an attended install of the ZEND Core servers.
    cd /home/www
    mkdir tmp
    cd /home/www/tmp
    tar -xzvf /root/ZendCore-2.5.0-linux-glibc21-i386.tar.gz
    cd ZendCore-2.5.0-linux-glibc21-i386/
    ./install -y
    
  5. Stop Zend Apache and correct the install location. Change the DocumentRoot location to /home/www/html.
    /etc/init.d/httpd stop
    cd /usr/local/Zend
    mv apache2 /home/www/zendcore/
    ln -s /home/www/zendcore/apache2 apache2
    mkdir /home/www/zendcore/apache2/etc
    mv /etc/httpd /home/www/zendcore/apache2/etc
    ln -s  /home/www/zendcore/apache2/etc/httpd httpd
    mkdir /home/www/html
    cd /home/www/zendcore/apache2/etc/httpd/conf
    sed -i s:/etc/httpd:/home/www/zendcore/apache2: httpd.conf
    sed -i s:/var/www/html:/home/www/html: httpd.conf
    sed -i s:"User apache":"User www": httpd.conf
    sed -i s:"Group apache":"Group www": httpd.conf
    sed -i s:/var/www:/home/www/zendcore/apache2: httpd.conf
    cd /home/www/zendcore/apache2/etc/httpd
    rm -f logs modules run
    chown -R www:www /home/www/
    /etc/init.d/httpd start