Monday 14 May 2012 8:34:25 pm
Solr and eZ Find require the Java Runtime Environment (JRE) version 1.6. It comes in a few different packages, but since we don’t need a GUI we might as well get the lean and mean “headless” OpenJDK version. Run these commands:
apt-get update apt-get install openjdk-6-jre-headless
IMPORTANT NOTE: from this point on, the tutorial assumes you have two eZ Publish instances running in the following directories:
You should replace these paths with those in your own environment, as necessary.
eZ Find is currently bundled with Community Project (CP) releases, so you can download the 2012.3 CP release of eZ Publish for this tutorial. See http://share.ez.no/downloads/downloads.
If you’re setting up an eZ Publish instance for the purpose of this tutorial, just install eZ Publish according to the official documentation. Choose the “Plain Site” install option. If you don’t you can still do the tutorial but you’ll have more files to wade through and you’ll have to substitute more directories.
If you are installing or upgrading eZ Find in an existing eZ Publish instance, unpack the 2012.3 release and copy the ezfind/ directory from the extension/ directory to the extension/ directory of your existing eZ Publish instance. Repeat for each instance on which you want eZ Find to run.
Now update the databases using the following commands (replace paths and user/database info as necessary):
cd /var/www/ezpublish/ezfindexample1/ mysql -u user -p database_name < extension/ezfind/sql/mysql/mysql.sql cd /var/www/ezpublish/ezfindexample2/ mysql -u user -p database_name < extension/ezfind/sql/mysql/mysql.sql
eZ Tika can be downloaded from http://projects.ez.no/eztika/downloads. Installation instructions are included with the download, but at this stage it’s as simple as extracting the downloaded archive to the extension folder in your eZ Publish instance(s).
Before we forget, we set the permissions for our extensions. Replace your paths and web server user name as necessary.
cd /var/www/ezpublish/ezfindexample1/ chmod -R og+rwx design extension settings var chown -R www-data:www-data design extension settings var cd /var/www/ezpublish/ezfindexample2/ chmod -R og+rwx design extension settings var chown -R www-data:www-data design extension settings var