Koozali.org: home of the SME Server

How to install lx-office 2.6 rc1

Offline fpausp

  • *
  • 728
  • +0/-0
How to install lx-office 2.6 rc1
« on: May 26, 2009, 02:37:26 AM »
Hi All,

I like to install lx-office 2.6 rc1 but i get an "5oo internal server error".

I used this "old" howto, sorry its in german:

Code: [Select]
Installation Lx-Office

Voraussetzung für den Betrieb von Lx-Office ist, dass die Datenbank Postgresql korrekt eingerichtet ist. Dazu ist es am einfachsten, zunächst auch Open-Xchange zu installieren, falls nicht sowieso erforderlich.
1. ibay anlegen für Lx-Office ERP

i-bay Name                      lx-erp
Beschreibung                    Lx-Office ERP
Gruppe                          Everyone
Benutzerzugang über
freigegebene Ordner oder
FTP mit Login                   Schreiben = Gruppe, Lesen = Gruppe
Öffentlicher Zugang über Web
oder anonymous FTP              Gesamtes Internet (Kennwort wird nicht benötigt)
Ausführung dynamischer
Inhalte(CGI, PHP, SSI)          Aktiviert

2. PHP Schreibrechte auf /tmp für die neuen ibays setzen

/sbin/e-smith/db accounts setprop lx-erp PHPBaseDir /home/e-smith/files/ibays/lx-erp/:/tmp
signal-event ibay-modify lx-erp

3. Installation des Programmpaketes

Die Lx-Office ERP Installationsdatei (lxoffice-erp-2.0.0.tgz)entpacken und in das lx-erp-Verzeichnis verschieben.

tar xvzf lx-office-erp-2.0.0.tgz
cd lxoffice-erp/
mv * /home/e-smith/files/ibays/lx-erp/html
cd /home/e-smith/files/ibays/lx-erp/html
chown -R www.www *

4. Datenbankbenutzer anlegen

Es sollte zum Zugriff auf die PostgreSQL Datenbank ein Datenbankbenutzer angelegt werden. Führen Sie dazu folgende Befehle nacheinander aus.

su - postgres
oder createuser -d -P lxoffice (mit Passwort)

Die Frage: "Soll der neue Benutzer weitere neue Benutzer erzeugen dürfen?" mit Ja beantworten

Wenn Sie später einen Datenbankzugriff konfigurieren, verändern Sie den evtl. voreingestellten Benutzer "postgres" auf "lxoffice".
5. PostgreSQL - Datenbank erweitern

In der Datenbank "template1" sollte bevor die restliche Konfiguration von ?LxOffice ERP erfolgt noch folgende Funktion hinzugefügt werden:

psql template1 postgres (Zugriff über Admintool auf die Datenbank)
create function plpgsql_call_handler ()
returns opaque
as '/usr/lib/pgsql/plpgsql.so'
language 'c';

create language 'plpgsql' handler plpgsql_call_handler
lancompiler 'pl/pgsql';

\q

Beenden mit exit
6. SME-Templates für Apache-Webserver erstellen

Der Zugriff auf das Programmverzeichnis muß in der Apache Webserver- konfiguration httpd.conf (/etc/httpd/conf/) konfiguriert werden:

mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf

Mit dem Editor Pico folgende Datei erstellen:

pico 95lx-erp

Folgende Daten eingeben:

Alias /lx-erp/ /home/e-smith/files/ibays/lx-erp/html/
<Directory /home/e-smith/files/ibays/lx-erp/html>
AllowOverride All
AddHandler cgi-script .pl
Options ExecCGI Includes FollowSymlinks
Order Allow,Deny
Allow from All
</Directory>

<Directory /home/e-smith/files/ibays/lx-erp/html/users>
Order Deny,Allow
Deny from All
</Directory>

(Ende der Eingabe, mit CTRL/X den Editor Pico beenden)

Zum Abschluss die Templates in die Konfiguration integrieren und den Webserver neu starten:

expand-template /etc/httpd/conf/httpd.conf
/etc/rc7.d/S86httpd-e-smith restart

7. Erstanmeldung und Konfiguration der Anwendung

Mit http://mustermann.com/lx-erp/admin.pl anmelden ohne Passwort

    * Auf "Datenbankadministration" klicken
    * Eine neue Datenbank anlegen, dabei Voreinstellungen behalten, Ausnahme Benutzer: bitte mit "lxoffice" ersetzen ->WEITER
    * Datenbankname = lxoffice, Schriftsatz = ISO-8859-1, Kontenplan = Germany-DATEV-SKR03EU ->WEITER
    * Datenbank wird erstellt und gibt Erfolgsmeldung aus
    * Benutzer anlegen, dabei Treiber = Pg, Datenbank = lxoffice, Benutzer = lxoffice, Passwort = wie oben hinterlegt
    * Anwendung starten


The tarfile can be found here:

http://dfn.dl.sourceforge.net/sourceforge/lx-office/lx-office-erp-2.6.0rc1.tar.gz

The pg-db was installed to get openbravo working.


Best
fpausp
Viribus unitis

Offline mike59999

  • 1
  • +0/-0
Re: How to install lx-office 2.6 rc1
« Reply #1 on: May 27, 2009, 07:58:16 AM »
Hi,

im from Germany and i had Problems too.

If you have Linux Debian install all the Packages are listet in the Howto.
Code: [Select]
apt-get install apache postgresql libdbi-perl libdbd-pg-perl libpg-perl libpdf-api2-perl
libclass-accessor-perl libarchive-zip-perl libtext-iconv-perl
libyaml-perl libtext-csv-perl libio-stringy-perl libtemplate-perl

It is important that you dind't use Subfolders. Untar all Files into Folder lx-erp in /var/www.
Then insert the following in your apache2.conf or vhost.conf
Code: [Select]
AddHandler cgi-script .pl
Alias /lx-erp/ /var/www/lx-erp/
<Directory /var/www/lx-erp>
Options ExecCGI Includes FollowSymlinks
</Directory>
<Directory /var/www/lx-erp/users>
Order Deny,Allow
Deny from All
</Directory>

For Example my lx-erp is installed on Debian in /var/www/lx-erp
My Website for lx-erp is located at /var/www/web4/web/lx-erp
The Problem is lx-erp can't find Perl when its installed in a Subdirectory.
But you can make a link for my Example it is
Code: [Select]
In -s /var/www/lx-erp /var/www/web4/web/lx-erp
This works for me.

Mik3

Offline kb-ohnemus

  • *****
  • 154
  • +0/-0
    • http://www.kb-ohnemus.de
Re: How to install lx-office 2.6 rc1
« Reply #2 on: May 27, 2009, 09:39:13 AM »
I think we should move this to the german section because LX is of no interest for non-german speaking folks.

Actually "server internal error" is caused by some missing perl modules. I had some days of fun getting LX 2.4 to work, with lots of additional perl modules from the dag-repository, a complete texlive-installation and so on. I've already started writing a howto but could'nt finish it yet.

Offline fpausp

  • *
  • 728
  • +0/-0
Re: How to install lx-office 2.6 rc1
« Reply #3 on: May 28, 2009, 07:22:47 PM »
ok, thank you all.

Best
fpausp
Viribus unitis