Note: Software listed is available on the MAP Support repository on Trogdor.mit.edu.
- 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
- 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
- Go through the user agreement, and type 'yes' at the prompt.
cd /root cp /root/java_home.sh /etc/profile.d chmod a+rx,a-w /etc/profile.d/java_home.sh
- Go through the user agreement, and type 'yes' at the prompt.
- Setup MySQL on the server.
- 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]
- 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'.
- 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
- Update the DB home directory.
chown -R db:db /home/db
- Start the MySQL service.
/etc/init.d/mysqld start
- If a version of MySQL previous to 5.0 was installed, remove it from the server.
- 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
- The install command starts an interactive install script. Answer the questions with the answers below.
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:
Select one of the following actions: 2 [enter]
- The install command starts an interactive install script. Answer the questions with the answers below.
- 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
- You may also need to comment out many of the modules trying to be loaded in httpd.conf.