eZ Community » Learn » eZ Publish » eZ Find Demystified: Installing and...

eZ Find Demystified: Installing and configuring a multi-core Solr/eZ Find 2.6 instance with eZ Tika

Monday 14 May 2012 8:34:25 pm

  • Currently 5 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Step 1: Install Java runtime

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
 

Step 2: Install eZ Find and eZ Tika

IMPORTANT NOTE: from this point on, the tutorial assumes you have two eZ Publish instances running in the following directories:
/var/www/ezpublish/ezfindexample1/
/var/www/ezpublish/ezfindexample2/

You should replace these paths with those in your own environment, as necessary.

 

Installing eZ Find

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.

Example:

  • /var/www/ezpublish/ezfindexample1/extension/ezfind
  • /var/www/ezpublish/ezfindexample2/extension/ezfind
 

Update the databases

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
 

Installing eZ Tika

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).

Example:

/var/www/ezpublish/ezfindexample1/extension/eztika

/var/www/ezpublish/ezfindexample2/extension/eztika

 

Setting file permissions

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
 
36 542 Users on board!

Tutorial menu

Printable

Printer Friendly version of the full article on one page with plain styles

Author(s)

Proudly Developed with from