Headerlogo wird nicht angezeigt - Serverfehler

Hilfe zu Znuny Problemen aller Art
Locked
KBCalls
Znuny newbie
Posts: 2
Joined: 17 May 2008, 10:51

Headerlogo wird nicht angezeigt - Serverfehler

Post by KBCalls »

Hallo,

Code: Select all


ich habe auf Debian "Etch" mit Apache2 OTRS installiert und möchte im Header-Bereich mein Logo als PNG-Datei anzeigen lassen, das klappt aber nicht so ganz wie gewünscht.
Dazu habe ich die Datei logo.png nach 
[code]/usr/share/otrs/bin/cgi-bin/
kopiert, weil ich annehme, dass das das Root-Verzeichnis von OTRS ist. Die Datei gehört dem www-data und in der CustomerHeader.dtl habe ich folgenden Eintrag gemacht

Code: Select all

<!-- start CI layout -->
<table border="0" width=1000" cellspacing="0" cellpadding="8">
<tr>
  <td width="1000" class="header"><IMG src="/logo.png" width="1000" height="255" align="left" border="0"></td>
</tr>
<tr>
  <td colspan="2">
<!-- end CI layout -->
Wenn ich jetzt http://www.website.de/otrs/customer.pl aufrufe, sehe ich zwar, dass ein Image in dem Headerbereich existieren sollte, aber die Datei wird nicht angezeigt.
Wenn ich die Datei direkt aufrufen will: http://www.website.de/otrs/logo.png, dann erhalte ich ein "Internal Server Error" und im Error-Logfile finde ich die Meldung
[quote][Sat May 17 11:02:47 2008] [error] Unrecognized character \\x89 at /usr/share/otrs/bin/cgi-bin/logo.png line 1.\n[/quote].
Die dazugehörige /etc/apache2/conf.d/otrs2 sieht so aus:

Code: Select all

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

# agent, admin and customer frontend
ScriptAlias /otrs/ "/usr/share/otrs/bin/cgi-bin/"
Alias /otrs-web/ "/usr/share/otrs/var/httpd/htdocs/"

<IfModule mod_perl.c>
  # load all otrs modules
  Perlrequire /usr/share/otrs/scripts/apache2-perl-startup.pl

  # Apache::Reload - Reload Perl Modules when Changed on Disk
  PerlModule Apache2::Reload
  PerlInitHandler Apache2::Reload
  PerlModule Apache2::RequestRec
</IfModule>

# set mod_perl2 options
<Location /otrs>
#  ErrorDocument 403 /otrs/customer.pl
  AllowOverride None
  ErrorDocument 403 /otrs/index.pl
  ErrorDocument 404 /otrs/index.pl
  Options +ExecCGI
  Order allow,deny
  Allow from all

  <IfModule mod_perl.c>
    SetHandler  perl-script
    PerlResponseHandler ModPerl::Registry
    PerlOptions +ParseHeaders
    PerlOptions +SetupEnv
  </IfModule>
  <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond /var/lib/otrs/httpd/htdocs/maintainance.html -l
    RewriteRule ^.*$ /otrs-web/maintainance.html
  </IfModule>
</Location>

# directory settings
<Directory "/usr/share/otrs/bin/cgi-bin/">
    AllowOverride None
    Options +ExecCGI -Includes
    Order allow,deny
    Allow from all
</Directory>
<Directory "/usr/share/otrs/var/httpd/htdocs/">
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

# MaxRequestsPerChild (so no apache child will be to big!)
MaxRequestsPerChild 400
Kennt Ihr Euch mit diesem Problem aus?

Vielen Dank!

KBCalls
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Headerlogo wird nicht angezeigt - Serverfehler

Post by jojo »

ne, da ist das falsch


schieb das mal nach var/httpd/htdocs/images/Standard

Als URL dann /otrs-web/images/Standard/logo.png nutzen
"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
KBCalls
Znuny newbie
Posts: 2
Joined: 17 May 2008, 10:51

Headerlogo wird nicht angezeigt - Serverfehler

Post by KBCalls »

Vielen Dank Jojo!

das war's, es hat bestens geklappt!

Grüsse

KBCalls
Locked