Installationsprobleme erledigt

Hilfe zu OTRS Problemen aller Art
Post Reply
R232
Znuny newbie
Posts: 25
Joined: 23 Apr 2018, 18:10
Znuny Version: 6 Patch 6

Installationsprobleme erledigt

Post by R232 »

Hallo zusammen,

ich verwende einen Ubuntuserver in der Version 16.04 mit Apache 2 Php7 und MYSQL. (LAMP)

Auf diesem Server werden mehrer Webseiten unter https und SSL auf dem Port 8080 betrieben.

Ich hatte analaog zur Produktiven Umgebung in der Testumgebung OTRS 6.6 installiert.
Dies hat super geklappt.
Allerdings waren die port verändert, diese wurden unter /etc/apache2/ports.conf wieder auf 8080 bzw hattp auf 81 gesetzt.
(Der Http80/81 port ist von außen nicht erreichbar.)

Nach der Installation von OTRS funktioniert SSL gänzlich garnicht mehr.
Dokument root ist /var/www

Kann mir vielleicht sagen wie ich das wieder alles parallel zum laufen bekomme?

Vielen Dank
R232
Last edited by R232 on 25 Apr 2018, 10:31, edited 1 time in total.
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Installationsprobleme

Post by jojo »

Hallo,

ich sehe hier keinerlei OTRS Issue sondern ein reines Apache Config Problem. OTRS sollte übrigens aus Performancegründen die einzigste Applikation auf dem Server sein
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
R232
Znuny newbie
Posts: 25
Joined: 23 Apr 2018, 18:10
Znuny Version: 6 Patch 6

Re: Installationsprobleme

Post by R232 »

Hi,
vermutlich ist es ein Apache Problem.
Wie bindet man dennoch SSL ZErifikate in OTRS ein?

Was die Performance bei nicht allzuvielen ca. 50-60 sollte dies doch kein Problem darstellen oder?
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Installationsprobleme

Post by jojo »

OTRS kennt das Zertifikat für https nicht, das wird alles über den Apache gemacht. Die OTRS Apache Config sorgt nur dafür das die Perl files über mod perl (oder im cgi modus) abgearbeitet werden und das anderer Content nicht via Perl geparst wird.

50-60 user? tickets? in welchem Zeitraum?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
R232
Znuny newbie
Posts: 25
Joined: 23 Apr 2018, 18:10
Znuny Version: 6 Patch 6

Re: Installationsprobleme

Post by R232 »

Alle anderen Anwendungen laufen nun wieder - nur otrs nicht.
Hab es mit Virtual Host gelöst.
# --
# added for OTRS (http://otrs.org/)
# --
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.crt
SSLCertificateKeyFile /etc/apache2/ssl/apache.key

ServerAdmin root@localhost
ServerName localhost

#DocumentRoot "/opt/otrs/bin/cgi-bin/"

ErrorLog /var/log/apache2/otrs-error.log
CustomLog /var/log/apache2/otrs-access.log combined


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

<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_filter.c>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/javascript application/javascript text/css text/xml application/json text/json
</IfModule>
</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_filter.c>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/javascript application/javascript text/css text/xml application/json text/json
</IfModule>
</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>

# Allow access to public interface for unauthenticated requests on systems with set-up authentication.
# Will work only for RegistrationUpdate, since page resources are still not be loaded.
# <Location /otrs/public.pl>
# <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>

<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>
</VirtualHost>
# Limit the number of requests per child to avoid excessive memory usage
MaxRequestsPerChild 4000

Der Aufruf von https://localhost/otrs liefert nur
The requested URL /otrs was not found on this server.

Irgendwas stimmt noch nicht


50-60 Benutzer Maximal und davon 5 Agenten.
Tickets derzeit in der Woche maximal 20
Post Reply