Skip to content
Yacoby edited this page Jun 8, 2012 · 2 revisions

Table of Contents

Setup

Download the source and extract it to your chosen directory.

Dependencies

Download the Zend Framework (This was developed using 1.8) and extract it to somewhere accessible (So the Zend Framework files reside in _library/Zend_) so your directory tree should look something like

 If you extract it elsewhere alter but ensure that the directory _Zend_ is on the include path. You can alter the include path in _AppLoader.php_

Download Doctrine 1.x and also ensure that Doctrine.php is on the include path. Download Sphinx. Note: By default in package managers these seem to be setup for mysql. You may have to compile it with the configure flags --with-pgsql

Ensure that the correct version of the PHP Sphinx API is also on the include path, and include it if it isn't by default. (NB: Errors with Sphinx don't show up and are just ignored).

Set the environmental variable TESSEARCH_ENV to `production` or alter AppLoader.php so that APPLICATION_ENV is by default set to `production`

Files

If they don't exist, create the directories _log_, _doc_, _data_, _cache/page_, _cache/site_ and chmod (recursively) these to 777.

Config

Rename _config/application.dist.ini_ to _application.ini_ and add sql database information. Rename _config/sphinx.dist.conf_ to _sphinx.conf_ and add sql database information.

Databases

Run `php ./scripts/doctrinecli build-all-reload` to create the database tables.

Run `_cron/Sphinx.sh index` and then ` _cron/Sphinx.sh start`

Cron Jobs

Files that need to be run on a cron job should are in _cron_. _GeneralTasks.php_ and _SyncData.php_ should be run about every 30 minutes.

Files matching _Update`*`.php_ should be run every 1 to 60 minutes depending on setup. There isn't much loss in running them more often, as they just pull a task off a queue.

Clone this wiki locally