Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.85 KB

install_ubuntu.md

File metadata and controls

53 lines (36 loc) · 1.85 KB

chronam Ubuntu

The following are instructions for installing system level dependencies on Ubuntu:

sudo apt-get install python-dev python-virtualenv mysql-server libmysqlclient-dev apache2 libapache2-mod-wsgi jetty openjdk-6-jdk libxml2-dev libxslt-dev libjpeg-dev git-core graphicsmagick

When you install mysql-server, you will be prompted for a root password. If you choose one, make a note of what it is. Later you will be asked to enter the password when you create the database for the project.

Get chronam

Next you need to get the chronam code:

sudo mkdir /opt/chronam
sudo chown $USER:users /opt/chronam
git clone https://github.com/LibraryOfCongress/chronam.git /opt/chronam

Configure Solr

Download Solr from a mirror site

wget http://archive.apache.org/dist/lucene/solr/4.4.0/solr-4.4.0.tgz
tar zxvf solr-4.4.0.tgz
sudo mv solr-4.4.0/example/ /opt/solr

sudo useradd -d /opt/solr -s /bin/bash solr
sudo chown solr:solr -R /opt/solr

sudo cp /opt/chronam/conf/jetty7.sh /etc/init.d/jetty
sudo chmod +x /etc/init.d/jetty

sudo cp /opt/chronam/conf/schema.xml /opt/solr/solr/collection1/conf/schema.xml
sudo cp /opt/chronam/conf/solrconfig.xml /opt/solr/solr/collection1/conf/solrconfig.xml

sudo cp /opt/chronam/conf/jetty-ubuntu /etc/default/jetty
sudo service jetty start

Configure Apache

sudo a2enmod cache expires rewrite disk_cache
sudo cp /opt/chronam/conf/chronam.conf /etc/apache2/sites-available/chronam
sudo a2ensite chronam
sudo install -o $USER -g users -d /opt/chronam/static
sudo install -o $USER -g users -d /opt/chronam/.python-eggs
sudo service apache2 reload

Continue

  • You can now return to the Install section in README.md