Skip to content
kmewhort edited this page Oct 19, 2010 · 5 revisions

A. Server setup (steps are for Debian -- you may have to adapt this for other distros)

  1. Install the pecl HTTP module:

    apt-get install php5-dev libcurl3 php-pear libcurl3-openssl-dev

    pecl install pecl_http

    echo extension=http.so >> /etc/php5/apache2/php.ini

  2. Install Sunjava (ensure the non-free repository is enabled):

    apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk

    update-java-alternatives -s java-6-sun

  3. Install mysql:

    sudo apt-get install mysql-server

    sudo apt-get install php5-mysql

  4. Install Utilities required for Nomus (Poppler Utils, Open Ofice, PHP5 (with xsl), and ImageMagick):

    apt-get install poppler-utils openoffice.org xvfb x11-xkb-utils xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic

    apache2 php5 libapache2-mod-php5 php5-cli imagemagick ant make php5-xsl

  5. Enable cross-site requests and Drupal clean paths

    ln -s /etc/apache2/mods-available/headers.load /etc/apache2/mods-enabled/headers.load

    a2enmod rewrite

    [Add the following to apache2.conf] <Directory /var/www/drupal> RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.)$ index.php?q=$1 [L,QSA] Header set Access-Control-Allow-Origin "" #Access-Control-Allow-Origin "*"

B. Nomus/Drupal setup

  1. Grab the trunk from Git.

  2. Load the MySQL starter database from /install-database

  3. Configure drupal to point to this database just created (copy /drupal/sites/default/default.settings.php to settings.php and configure the db connection line appropriately).

  4. Configure the path variables at the top of the /startServer.bsh script.

  5. Setup startServer.bsh to run at startup (eg. put in a cron @reboot entry)

  6. Rebuild the apache search index after logging on to Drupal (login: admin/admin; then go to Site configuration -> Apache solr)

Clone this wiki locally