Skip to content

Scholar 3.x Server Environment Upgrade

Sean Crowe edited this page Aug 15, 2017 · 6 revisions

Changes on the web server(s)

ffmpeg

  1. sudo -s
  2. cd /opt
  3. wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-64bit-static.tar.xz
  4. tar -xf ffmpeg-git-64bit-static.tar.xz
  5. mv /usr/bin/ffmpeg /usr/bin/ffmpeg-old
  6. ln -s /opt/ffmpeg-git-20170613-64bit-static/ffmpeg /usr/bin/ffmpeg
  7. ln -s /opt/ffmpeg-git-20170803-64bit-static/ffmpeg /usr/bin/ffmpeg
  8. Test: ffmpeg (check version)

ImageMagick

  1. cd /etc/yum.repos.d/
  2. sudo wget https://rpms.remirepo.net/enterprise/remi.repo
  3. sudo yum --enablerepo=remi install ImageMagick6-libs ImageMagick6
  4. sudo mv /usr/local/bin/convert /usr/local/bin/convert-old
  5. sudo mv /usr/bin/convert /usr/bin/convert-old QA install
  6. sudo mv /usr/local/bin/mogrify /usr/local/bin/mogrify-old
  7. Test: convert -list configure (look at delegates)

Fits

  1. sudo -s
  2. cd /opt/fits
  3. wget http://projects.iq.harvard.edu/files/fits/files/fits-0.8.5.zip
  4. chmod a+x /opt/fits/fits-0.8.5/fits.sh
  5. edit /etc/profile.d/fits.sh and change 0.6.2 to 0.8.5
  6. Test: fits.sh -v (check version is 0.8.5)

Phantomjs

  1. sudo -s
  2. cd /opt
  3. wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
  4. tar -xvf phantomjs-2.1.1-linux-x86_64.tar.bz2
  5. sudo ln -s /opt/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/bin/
  6. Test: phantomjs -v (check version is 2.1.1)

Redis

  1. sudo -s
  2. yum remove redis
  3. cd /opt
  4. wget http://download.redis.io/releases/redis-2.8.3.tar.gz
  5. tar -xzf redis-2.8.3.tar.gz
  6. cd redis-2.8.3
  7. make
  8. make install
  9. Test: /usr/local/bin/redis-server (check that it starts)

Ruby

  1. sudo -s
  2. cd /opt
  3. wget http://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.1.tar.gz
  4. tar -xzf ruby-2.4.1.tar.gz
  5. cd ruby-2.4.1
  6. ./configure --prefix=/usr
  7. make
  8. make install
  9. Test: ruby -v (check version is 2.4.1)

Passenger

  1. sudo -s
  2. gem install passenger -v 4.0.60
  3. passenger-install-apache2-module
  4. service httpd stop
  5. edit httpd/conf.d/passenger.conf
    • change 2.1.0 to 2.4.0
    • change 4.0.45 to 4.0.60
  6. service httpd start

Changes on the Fedora server

Fedora 4

  1. sudo -s
  2. cd /opt
  3. wget http://repo1.maven.org/maven2/org/fcrepo/fcrepo-webapp/4.7.1/fcrepo-webapp-4.7.1.war
  4. cd /mnt/hydra
  5. mv fedora fedora-old
  6. mkdir fedora
  7. chown tomcat:tomcat fedora
  8. cd /opt
  9. wget http://mirrors.ocf.berkeley.edu/apache/tomcat/tomcat-8/v8.5.16/bin/apache-tomcat-8.5.16.tar.gz
  10. wget https://archive.apache.org/dist/tomcat/tomcat-8/v8.5.16/bin/apache-tomcat-8.5.16.tar.gz
  11. tar xzf apache-tomcat-8.5.16.tar.gz
  12. chown -R tomcat:tomcat /opt/apache-tomcat-8.5.16
  13. cp fcrepo-webapp-4.7.1.war apache-tomcat-8.5.16/webapps/fedora.war
  14. sudo su - tomcat
  15. export CATALINA_BASE="/opt/apache-tomcat-8.5.16"; export CATALINA_HOME="/opt/apache-tomcat-8.5.16"; export CATALINA_TMPDIR="/opt/apache-tomcat-8.5.16/temp"; export CLASSPATH="/opt/apache-tomcat-8.5.16/bin/bootstrap.jar:/opt/apache-tomcat-8.5.16/bin/tomcat-juli.jar"
  16. export JAVA_OPTS="-Dfcrepo.home=/mnt/hydra/fedora -Dfcrepo.modeshape.configuration=classpath:/config/file-simple/repository.json -Djava.awt.headless=true -XX:+UseG1GC -XX:+UseCompressedOops -XX:-UseLargePagesIndividualAllocation -XX:MaxPermSize=128M -Xms6000m -Xmx6000m -Djava.util.logging.config.file=/opt/apache-tomcat-8.5.16/conf/logging.properties -server"
  17. /opt/apache-tomcat-8.5.16/bin/startup.sh

Changes on the Solr server

Solr

  1. sudo -s
  2. cd /opt
  3. wget http://archive.apache.org/dist/lucene/solr/6.5.0/solr-6.5.0.tgz.md5
  4. wget http://archive.apache.org/dist/lucene/solr/6.5.0/solr-6.5.0.tgz (verify the checksum)
  5. tar -xzf solr-6.5.0.tgz
  6. solr-6.5.0/bin/install_solr_service.sh /opt/solr-6.5.0.tgz
  7. service solr stop
  8. vim /etc/default/solr.in.sh (set the port number)
  9. chown -R solr /opt/solr-6.5.0
  10. service solr start
  11. su - solr
  12. /opt/solr/bin/solr create -c collection1 -d basic_configs -p 8983
  13. copy schema.xml and solrconfig.xml from the web server at /srv/apps/scholar_uc_beta/solr/config/ to /var/solr/data/collection1/conf/
  14. exit
  15. service solr stop
  16. service solr start
Clone this wiki locally