-
Notifications
You must be signed in to change notification settings - Fork 1
Scholar 3.x Server Environment Upgrade
Sean Crowe edited this page Aug 15, 2017
·
6 revisions
- sudo -s
- cd /opt
- wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-64bit-static.tar.xz
- tar -xf ffmpeg-git-64bit-static.tar.xz
- mv /usr/bin/ffmpeg /usr/bin/ffmpeg-old
ln -s /opt/ffmpeg-git-20170613-64bit-static/ffmpeg /usr/bin/ffmpeg- ln -s /opt/ffmpeg-git-20170803-64bit-static/ffmpeg /usr/bin/ffmpeg
- Test:
ffmpeg
(check version)
- cd /etc/yum.repos.d/
- sudo wget https://rpms.remirepo.net/enterprise/remi.repo
- sudo yum --enablerepo=remi install ImageMagick6-libs ImageMagick6
sudo mv /usr/local/bin/convert /usr/local/bin/convert-old- sudo mv /usr/bin/convert /usr/bin/convert-old QA install
- sudo mv /usr/local/bin/mogrify /usr/local/bin/mogrify-old
- Test:
convert -list configure
(look at delegates)
- sudo -s
- cd /opt/fits
- wget http://projects.iq.harvard.edu/files/fits/files/fits-0.8.5.zip
- chmod a+x /opt/fits/fits-0.8.5/fits.sh
- edit /etc/profile.d/fits.sh and change 0.6.2 to 0.8.5
- Test:
fits.sh -v
(check version is 0.8.5)
- sudo -s
- cd /opt
- wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
- tar -xvf phantomjs-2.1.1-linux-x86_64.tar.bz2
- sudo ln -s /opt/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/bin/
- Test:
phantomjs -v
(check version is 2.1.1)
- sudo -s
- yum remove redis
- cd /opt
- wget http://download.redis.io/releases/redis-2.8.3.tar.gz
- tar -xzf redis-2.8.3.tar.gz
- cd redis-2.8.3
- make
- make install
- Test:
/usr/local/bin/redis-server
(check that it starts)
- sudo -s
- cd /opt
- wget http://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.1.tar.gz
- tar -xzf ruby-2.4.1.tar.gz
- cd ruby-2.4.1
- ./configure --prefix=/usr
- make
- make install
- Test:
ruby -v
(check version is 2.4.1)
- sudo -s
- gem install passenger -v 4.0.60
- passenger-install-apache2-module
- service httpd stop
- edit httpd/conf.d/passenger.conf
- change 2.1.0 to 2.4.0
- change 4.0.45 to 4.0.60
- service httpd start
- sudo -s
- cd /opt
- wget http://repo1.maven.org/maven2/org/fcrepo/fcrepo-webapp/4.7.1/fcrepo-webapp-4.7.1.war
- cd /mnt/hydra
- mv fedora fedora-old
- mkdir fedora
- chown tomcat:tomcat fedora
- cd /opt
wget http://mirrors.ocf.berkeley.edu/apache/tomcat/tomcat-8/v8.5.16/bin/apache-tomcat-8.5.16.tar.gz- wget https://archive.apache.org/dist/tomcat/tomcat-8/v8.5.16/bin/apache-tomcat-8.5.16.tar.gz
- tar xzf apache-tomcat-8.5.16.tar.gz
- chown -R tomcat:tomcat /opt/apache-tomcat-8.5.16
- cp fcrepo-webapp-4.7.1.war apache-tomcat-8.5.16/webapps/fedora.war
- sudo su - tomcat
- 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"
- 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"
- /opt/apache-tomcat-8.5.16/bin/startup.sh
- sudo -s
- cd /opt
- wget http://archive.apache.org/dist/lucene/solr/6.5.0/solr-6.5.0.tgz.md5
- wget http://archive.apache.org/dist/lucene/solr/6.5.0/solr-6.5.0.tgz (verify the checksum)
- tar -xzf solr-6.5.0.tgz
- solr-6.5.0/bin/install_solr_service.sh /opt/solr-6.5.0.tgz
- service solr stop
- vim /etc/default/solr.in.sh (set the port number)
- chown -R solr /opt/solr-6.5.0
- service solr start
- su - solr
- /opt/solr/bin/solr create -c collection1 -d basic_configs -p 8983
- copy schema.xml and solrconfig.xml from the web server at /srv/apps/scholar_uc_beta/solr/config/ to /var/solr/data/collection1/conf/
- exit
- service solr stop
- service solr start