OTRS und I-DOIT auf dem gleichen Server betreiben

Hilfe zu OTRS Problemen aller Art
Post Reply
christian82
Znuny newbie
Posts: 49
Joined: 22 May 2014, 19:19
Znuny Version: 3.3.7

OTRS und I-DOIT auf dem gleichen Server betreiben

Post by christian82 »

Hallo zusammen,

ich habe ein bereits funktionierendes OTRS auf einem Ubuntu Server laufen. Auf diesem System möchte ich nun auch I-DOIT Open installieren.

I-DOIT soll unter <meine-IP>/i-doit erreichbar sein, OTRS wie bisher unter <meine-IP>/otrs

ruft ein Kunde <meine-IP> auf, soll automatisch auf <meine-IP>/otrs/customer.pl umgeleitet werden.

Der OTRS-Teil funktioniert wie er soll, habe es nur zum besseren Verständnis nochmal erläutert.

Leider kriege ich das unter der Apache 2 Config file nicht hin.

Hier die Config files:

000-default.conf:

Code: Select all

<VirtualHost *:80>
   # The ServerName directive sets the request scheme, hostname and port that
   # the server uses to identify itself. This is used when creating
   # redirection URLs. In the context of virtual hosts, the ServerName
   # specifies what hostname must appear in the request's Host: header to
   # match this virtual host. For the default virtual host (this file) this
   # value is not decisive as it is used as a last resort host regardless.
   # However, you must set it for any further virtual host explicitly.
   #ServerName www.example.com

   ServerAdmin webmaster@localhost
   DocumentRoot /opt/otrs/bin/cgi-bin

   
   RedirectMatch ^/$ /otrs/customer.pl/$1
   RedirectMatch ^/agent/$ /otrs/index.pl/$1

   # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
   # error, crit, alert, emerg.
   # It is also possible to configure the loglevel for particular
   # modules, e.g.
   #LogLevel info ssl:warn

   ErrorLog ${APACHE_LOG_DIR}/error.log
   CustomLog ${APACHE_LOG_DIR}/access.log combined

   # For most configuration files from conf-available/, which are
   # enabled or disabled at a global level, it is possible to
   # include a line for only one particular virtual host. For example the
   # following line enables the CGI configuration for this host only
   # after it has been globally disabled with "a2disconf".
   #Include conf-available/serve-cgi-bin.conf
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
i-doit.conf:

Code: Select all

<VirtualHost *:81>
   # The ServerName directive sets the request scheme, hostname and port that
   # the server uses to identify itself. This is used when creating
   # redirection URLs. In the context of virtual hosts, the ServerName
   # specifies what hostname must appear in the request's Host: header to
   # match this virtual host. For the default virtual host (this file) this
   # value is not decisive as it is used as a last resort host regardless.
   # However, you must set it for any further virtual host explicitly.
   #ServerName www.example.com

   ServerAdmin webmaster@localhost
   DocumentRoot /var/www/i-doit
   #Alias /i-doit/ /var/www/i-doit/
   
#   RedirectMatch ^/$ /otrs/customer.pl/$1
#   RedirectMatch ^/agent/$ /otrs/index.pl/$1

   # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
   # error, crit, alert, emerg.
   # It is also possible to configure the loglevel for particular
   # modules, e.g.
   #LogLevel info ssl:warn

   ErrorLog ${APACHE_LOG_DIR}/error.log
   CustomLog ${APACHE_LOG_DIR}/access.log combined

   # For most configuration files from conf-available/, which are
   # enabled or disabled at a global level, it is possible to
   # include a line for only one particular virtual host. For example the
   # following line enables the CGI configuration for this host only
   # after it has been globally disabled with "a2disconf".
   #Include conf-available/serve-cgi-bin.conf
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

otrs.conf:

Code: Select all

# --
# added for OTRS (http://otrs.org/)
# --

ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"

# activate this if you are using an Oracle database
#SetEnv ORACLE_HOME /path/to/your/oracle/
#SetEnv ORACLE_SID YOUR_SID
#SetEnv NLS_LANG AMERICAN_AMERICA.UTF8
#SetEnv NLS_DATE_FORMAT 'YYYY-MM-DD HH24:MI:SS'

<IfModule mod_perl.c>

    # Setup environment and preload modules
    Perlrequire /opt/otrs/scripts/apache2-perl-startup.pl

    # Reload Perl modules when changed on disk
    PerlModule Apache2::Reload
    PerlInitHandler Apache2::Reload

    # general mod_perl2 options
    <Location /otrs>
#        ErrorDocument 403 /otrs/customer.pl
        ErrorDocument 403 /otrs/index.pl
        SetHandler  perl-script
        PerlResponseHandler ModPerl::Registry
        Options +ExecCGI
        PerlOptions +ParseHeaders
        PerlOptions +SetupEnv

        <IfModule mod_version.c>
            <IfVersion < 2.4>
                Order allow,deny
                Allow from all
            </IfVersion>
            <IfVersion >= 2.4>
                Require all granted
            </IfVersion>
        </IfModule>
        <IfModule !mod_version.c>
            Order allow,deny
            Allow from all
        </IfModule>
    </Location>

    # mod_perl2 options for GenericInterface
    <Location /otrs/nph-genericinterface.pl>
        PerlOptions -ParseHeaders
    </Location>

</IfModule>

<Directory "/opt/otrs/bin/cgi-bin/">
    AllowOverride None
    Options +ExecCGI -Includes

    <IfModule mod_version.c>
        <IfVersion < 2.4>
            Order allow,deny
            Allow from all
        </IfVersion>
        <IfVersion >= 2.4>
            Require all granted
        </IfVersion>
    </IfModule>
    <IfModule !mod_version.c>
        Order allow,deny
        Allow from all
    </IfModule>

    <IfModule mod_deflate.c>
        AddOutputFilterByType DEFLATE text/html text/javascript text/css text/xml application/json text/json
    </IfModule>
</Directory>

<Directory "/opt/otrs/var/httpd/htdocs/">
    AllowOverride None

    <IfModule mod_version.c>
        <IfVersion < 2.4>
            Order allow,deny
            Allow from all
        </IfVersion>
        <IfVersion >= 2.4>
            Require all granted
        </IfVersion>
    </IfModule>
    <IfModule !mod_version.c>
        Order allow,deny
        Allow from all
    </IfModule>

    <IfModule mod_deflate.c>
        AddOutputFilterByType DEFLATE text/html text/javascript text/css text/xml application/json text/json
    </IfModule>

    # Make sure CSS and JS files are read as UTF8 by the browsers.
    AddCharset UTF-8 .css
    AddCharset UTF-8 .js

    # Set explicit mime type for woff fonts since it is relatively new and apache may not know about it.
    AddType application/font-woff .woff

</Directory>

<IfModule mod_headers.c>
    # Cache css-cache for 30 days
    <Directory "/opt/otrs/var/httpd/htdocs/skins/*/*/css-cache">
        <FilesMatch "\.(css|CSS)$">
            Header set Cache-Control "max-age=2592000 must-revalidate"
        </FilesMatch>
    </Directory>

    # Cache css thirdparty for 4 hours, including icon fonts
    <Directory "/opt/otrs/var/httpd/htdocs/skins/*/*/css/thirdparty">
        <FilesMatch "\.(css|CSS|woff|svg)$">
            Header set Cache-Control "max-age=14400 must-revalidate"
        </FilesMatch>
    </Directory>

    # Cache js-cache for 30 days
    <Directory "/opt/otrs/var/httpd/htdocs/js/js-cache">
        <FilesMatch "\.(js|JS)$">
            Header set Cache-Control "max-age=2592000 must-revalidate"
        </FilesMatch>
    </Directory>

    # Cache js thirdparty for 4 hours
   <Directory "/opt/otrs/var/httpd/htdocs/js/thirdparty/">
        <FilesMatch "\.(js|JS)$">
            Header set Cache-Control "max-age=14400 must-revalidate"
        </FilesMatch>
    </Directory>
</IfModule>

# Limit the number of requests per child to avoid excessive memory usage
MaxRequestsPerChild 4000

Hazet
Znuny wizard
Posts: 383
Joined: 19 Feb 2009, 12:05
Znuny Version: 5.0.9
Real Name: Harald Zahn
Company: Klinikum Augsburg
Location: Augsburg

Re: OTRS und I-DOIT auf dem gleichen Server betreiben

Post by Hazet »

Wenn ich mich nicht täusche hast Du idoit für Port 81 konfiguriert...
Produktiv: OTRS 5.0.9 , (ITSM 5.0.10) unter Ubuntu 14.04, mysql 5.5
Test: OTRS 5.0.8 , (ITSM 5.0.8), KIX unter Ubuntu 14.04, mysql 5.5
christian82
Znuny newbie
Posts: 49
Joined: 22 May 2014, 19:19
Znuny Version: 3.3.7

Re: OTRS und I-DOIT auf dem gleichen Server betreiben

Post by christian82 »

Das war nur einer der vielen Test die ich durchgeführt habe. Komischerweise funktioniert die Verbindung, auch über Port 81 nicht. Weder über <meine-IP>/i-doit noch direkt auf <meine-IP>.

Irgendwo ist da ein Fehler in den Config Files. Ich weiss nur nicht welche und wo...
Hazet
Znuny wizard
Posts: 383
Joined: 19 Feb 2009, 12:05
Znuny Version: 5.0.9
Real Name: Harald Zahn
Company: Klinikum Augsburg
Location: Augsburg

Re: OTRS und I-DOIT auf dem gleichen Server betreiben

Post by Hazet »

1. Ist das ja jetzt eher eine Apache-Frage als OTRS
2. Poste doch dann bitte Deine jetzige konfig
3. Du schreibst nirgends, was passiert wenn Du http://<meine-IP>/i-doit aufrufst.
4. zugehörige apache-logs fehlen
Produktiv: OTRS 5.0.9 , (ITSM 5.0.10) unter Ubuntu 14.04, mysql 5.5
Test: OTRS 5.0.8 , (ITSM 5.0.8), KIX unter Ubuntu 14.04, mysql 5.5
christian82
Znuny newbie
Posts: 49
Joined: 22 May 2014, 19:19
Znuny Version: 3.3.7

Re: OTRS und I-DOIT auf dem gleichen Server betreiben

Post by christian82 »

1. Ich denke nicht, dass ich der Erste oder Einzige bin, der dies so aufsetzt. Deshalb wollte ich erst hier fragen.
2. Jetzige Config Files sind im ersten Post
3. Fehlermeldung "Die Seite kann icht angezeigt werden"
4. Keine Einträge in den Apache Logfiles
Hazet
Znuny wizard
Posts: 383
Joined: 19 Feb 2009, 12:05
Znuny Version: 5.0.9
Real Name: Harald Zahn
Company: Klinikum Augsburg
Location: Augsburg

Re: OTRS und I-DOIT auf dem gleichen Server betreiben

Post by Hazet »

Auch nicht im access.log?
Was passiert bei http://<Deine-IP>:81
bzw
http://<Deine-IP>:81/i-doit/.
Ersteres müsste eigentlich was zurückliefern...
Vorausgesetzt i-doit ist auch unter
/var/www/i-doit
installiert.
Was bringt

ls -l /var/www/i-doit
Produktiv: OTRS 5.0.9 , (ITSM 5.0.10) unter Ubuntu 14.04, mysql 5.5
Test: OTRS 5.0.8 , (ITSM 5.0.8), KIX unter Ubuntu 14.04, mysql 5.5
christian82
Znuny newbie
Posts: 49
Joined: 22 May 2014, 19:19
Znuny Version: 3.3.7

Re: OTRS und I-DOIT auf dem gleichen Server betreiben

Post by christian82 »

Nope, keinerlei Einträge...

I-DOIT ist unter dem Pfad installiert.

Gleicher Fehler auch wenn ich die Seite über Port 81 aufrufe. Eigentlich soll I-DOIT unter Port 80 erreichbar sein. Den Port habe ich nur auf 81 geändert um zu sehen ob es einen Unterschied macht oder nicht. Mittlerweile habe ich ihn wieder zurück auf 80 gesetzt.

Das Einzige was bisher was gebracht hat ist, wenn ich in 000-default.conf den Wert von DocumentRoot auf /var/www ändere.

Dann ist I-DOIT unter <meine-IP> erreichbar. Das möchte ich aber nicht, da hier das Kunden Frontend von OTRS erreichbar sein soll.

Das hat irgendwas mit den Config Files zu tun, ich kann aber nicht rausfinden was. Auch wenn ich eine Kopie der otrs.conf anlege und DocumentRoot abändere bleibt der Fehler bestehen.

Und bevor Du fragst: Ich starte Apache nach den Änderungen neu.
Hazet
Znuny wizard
Posts: 383
Joined: 19 Feb 2009, 12:05
Znuny Version: 5.0.9
Real Name: Harald Zahn
Company: Klinikum Augsburg
Location: Augsburg

Re: OTRS und I-DOIT auf dem gleichen Server betreiben

Post by Hazet »

Hm. Du müsstest in der acces.log dann wenigstens einen 404 bekommen.

Wo liegt denn Deine i-doit.conf?
Irgendwie scheint er die nicht zu ziehen.
Produktiv: OTRS 5.0.9 , (ITSM 5.0.10) unter Ubuntu 14.04, mysql 5.5
Test: OTRS 5.0.8 , (ITSM 5.0.8), KIX unter Ubuntu 14.04, mysql 5.5
Post Reply