OpenSUSE 10.x Installation

From DocMGR

Jump to: navigation, search

Contents

[edit] Overview

DocMGR is running fine on openSUSE 10.1 and 10.2. This "howto" assumes a reasonably standard installed openSUSE system and describes the actions to get DocMGR up and running.

[edit] Preparing the Operating System

Perform a clean install of openSUSE, Apache, PHP and PostgreSQL using Yast2, apply the latest patches and updates to the system. The setup has been tested with DocMGR 0.58, Apache 2.2.0, PostgreSQL 8.1.4, PHP 5.1.2.

[edit] DocMGR install files

Untar DocMGR

# tar xfvz docmgr-0.58.tar.gz

Change ownership of the installed files. Apache runs as user "wwwrun" and group "www":

# chown -R wwwrun.www *

Next, fix file permissions on the installed files:

# find -name '*php' -print -exec chmod -x {} \;
# find -name '*xml' -print -exec chmod -x {} \;
# find -name '*txt' -print -exec chmod -x {} \;

[edit] Add-Ons

[edit] antiword

Get sources from www.winfield.demon.nl

# compile/make
# cp antiword /usr/bin
# mkdir /usr/share/antiword
# cp $ANTIWORD/Resources/* /usr/share/antiword

[edit] clamav, gocr, ocrad

gocr is not on openSUSE download DVD, however, gocr is in the additional repositories. Otherwise use ocrad Use yast2 to install from the repositories. edit /etc/freshclam.conf before running as root freshclam

[edit] Configuring DocMGR

[edit] PHP 5

Php is started with "php5" instead of "php", so edit config/app-config.php:

//php cli binary
//define("APP_PHP","php");
define("APP_PHP","php5");

There are two (2!) config-files for php5. One controls Apache-php, the other controls commandline-php. Edit both.

edit /etc/php5/apache2/php.ini
edit /etc/php5/cli/php.ini

[edit] Thumbnails from antiword

PostScript doesnot support UTF-8, so antiword cannot output an UTF-8 ps-file. Edit config/app-config.php accordingly:

define("APP_MSWORD_THUMB","antiword -m 8859-1.txt -p a4 ");

[edit] Charset UTF-8

OpenSuSE 10.x uses UTF-8: edit config/config.php and lang/English.php

[edit] scripts/reindex.php

Change first line:

#!/usr/bin/php5

[edit] tsearch2

TSEARCH2 is part of the postgresl-contrib package. Install with yast2. Please refer the Installation Guide

Personal tools