UserPreferences

distOXÞbian/webserver


../

Web-Server

Installation

Install Apache2:

apt-get install apache2-common \ 
                apache2-mpm-prefork \
                apache2-utils \
                libnet-ssleay-perl \
                libio-socket-ssl-perl \
                libxml-sax-perl \
                libxml-namespacesupport-perl \
                libauthen-sasl-perl \
                libconvert-asn1-perl \
                libnet-ldap-perl \
                libapache2-mod-jk2

Configuration

First we need make an virtual host for open exchange in: /etc/apache2/sites-available/ox.matrix.home

<VirtualHost *>
        ServerAdmin     sys-admin@matrix.home
        ServerName      ox.matrix.home
        DirectoryIndex  /cgi-bin/login.pl

        DocumentRoot    /var/www/ox.matrix.ome/
        <Directory /var/www/ox.matrix.home/>
                Options -MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
        
        ScriptAlias /cgi-bin/ /var/www/ox.matrix.home/cgi-bin/
        <Directory /var/www/ox.matrix.home/cgi-bin/>
                AllowOverride None
                Options ExecCGI -MultiViews
                Order allow,deny
                Allow from all
        </Directory>
        
        <Location "/servlet/*">
                JkUriSet group ajp13:localhost:8009
                JkUriSet info "webmail/groupware access"
        </Location>
        <Location "/servlet/webdav.contacts*">
                JkUriSet group ajp13:localhost:8009
                JkUriSet info "Webdav access"
        </Location>

        CustomLog       /var/log/apache2/ox-access.log combined
        ErrorLog        /var/log/apache2/ox-error.log
</VirtualHost>

We also need to set the mod_jk2 communications settings in the file: /etc/apache2/mods-enabled/jk2.conf

<IfModule mod_jk2.c>
        JkSet2 logger level debug
        JkSet2 logger.file:0 file /var/log/apache2/jk2.log
        JkSet2 logger.file:0 level debug

        JkSet2 shm: file /var/run/apache2/.shm.file
        JkSet2 shm: size 1048576

        JkSet2 channel.socket:localhost:8009 info "Ajp13 forwarding over socket"
        JkSet2 status: info "Status worker, displays runtime information"
        JkSet2 workerEnv: logger logger.file:0

</IfModule>

Now let's enable the site:

a2ensite ox.matrix.home

We need to gather all the website components of OX:

mkdir -p /var/www/ox.matrix.home/cfintranet/webmail/
mkdir /var/www/ox.matrix.home/cgi-bin/

cd /usr/local/open-xchange/share/webmail/data/
cp -r css/ images/ javascript/ /var/www/ox.matrix.home/cfintranet/webmail/

cd /usr/local/open-xchange/share/groupware/data/
cp -r css/ images/ javascript/ /var/www/ox.matrix.home/cfintranet/

cd /usr/local/open-xchange/share/perl
cp login.* /var/www/ox.matrix.home/cgi-bin/

Reloads apache2 config files:

/etc/init.d/apache2 reload

Test

Check if u see the login screen: [WWW]http://ox.matrix.home/

We make the tomcat connection in the next document.

Working? Go ahead to the next part. ->../servletserver

Changelog of this part

[MAILTO]AndreasCordes