Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Note:

...

Software

...

listed

...

is

...

available

...

on

...

the

...

MAP

...

Support

...

repository

...

on

...

Trogdor.mit.edu.

...

  1. Download

...

  1. the

...

  1. following

...

  1. files

...

  1. from

...

  1. the

...

  1. MAP

...

  1. Support

...

  1. repository

...

  1. onto

...

  1. the

...

  1. system

...

  1. being

...

  1. setup:

...

  1. Code Block

...

  1. 
    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
    

...

  1. Set up Java,

...

  1. and

...

  1. the

...

  1. Java

...

  1. home

...

  1. var.

...

  1. Code Block

...

  1. 
    chmod u+x /root/jdk-6-linux-i586.bin
    cd /usr/local
    /root/jdk-6-linux-i586.bin
    

...

    • Go through the user agreement, and type 'yes'

...

    • at

...

    • the

...

    • prompt.

...

    • Code Block

...

    • 
      cd /root
      cp /root/java_home.sh /etc/profile.d
      chmod a+rx,a-w /etc/profile.d/java_home.sh
      

...

  1. Setup MySQL on the server.
    1. If a version of MySQL previous to 5.0 was installed, remove it from the server.
      Code Block
      
      /etc/init.d/mysqld stop
      grep mysql /var/log/rpmpkgs
      rpm -e [relevant packages]
      

...

    1. If MySQL was not included, install it from RPM.
      Code Block
      
      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'.

...

    1. Edit

...

    1. the

...

    1. my.cnf

...

    1. file,

...

    1. and

...

    1. copy

...

    1. it

...

    1. in

...

    1. /etc.

...

    1. Make

...

    1. certain

...

    1. the

...

    1. default

...

    1. engine

...

    1. in

...

    1. INNODB,

...

    1. the

...

    1. home

...

    1. directory

...

    1. in

...

    1. /home/db/mysql,

...

    1. the

...

    1. user

...

    1. is

...

    1. db,

...

    1. and

...

    1. the

...

    1. SSL

...

    1. setting

...

    1. are

...

    1. set,

...

    1. if

...

    1. they

...

    1. are

...

    1. needed

...

    1. (usually,

...

    1. they

...

    1. are

...

    1. not).

...

    1. Code Block

...

    1. 
      cd /root
      vi my.cnf
      cp /root/my.cnf /etc/my.cnf
      

...

    1. Update the DB home directory.
      Code Block
      
      chown -R db:db /home/db
      

...

    1. Start the MySQL service.
      Code Block
      
      /etc/init.d/mysqld start
      

...

  1. Perform an attended install of the ZEND Core servers.
    Code Block
    
    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
    

...

    • The install command starts an interactive install script. Answer the questions with the answers below.
      Code Block
      
      Do you accept the terms of this license?        Yes
      Enter the destination path for the Zend Core Installation.:   /home/www/zendcore
      Please enter a GUI Password:    [some password - will need it later, put it in a secure location]
      Please select which components to install / configure:         2 [enter][enter]  # To add PHP
      Select an Apache package to install.:   3 [enter]  #  Install the bundled Apache 2.2.4
      Choose Apache Port [80]:   [enter]   #  Keep default port
      Select an Apache Installation Method:   0 [enter]
      

...

    • It then runs an automated install. Take a coffee break. Finish the config:
      Code Block
      
      Select one of the following actions:  2 [enter] 
      

...

  1. Stop Zend Apache and correct the install location. Change the DocumentRoot location to /home/www/html.

...

  1. Code Block

...

  1. 
    /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
    

...

    • You may also need to comment out many of the modules trying to be loaded in httpd.conf.