[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Probleme mit dem Apachen



Am Die, 2003-01-14 um 09.02 schrieb Uwe Kerstan:
> * Marc F. Neininger <marc@champagnierle.de> [14-01-2003 09:39]:
Hallo Uwe,
>  
> print "Content-type: text/html\n\n";
> 
> Have fun!
Nö. Ich hab den Content-type angepasst. Nix. Immer noch Error500.
<Zusammenfassung>

Das Skript ist:
<----------- schnipp -------------->
#!/usr/bin/perl -w

# Das Skript legt in /tmp eine Datei Perl_Test.dat an. 
# Ich habe das Skript so kurz gehalten, damit ich mich 
# nicht mit fehlenden Module etc. herumschlagen muss. 
# Um auch mit der Ausgabe nicht in Konflikt zu geraten
# wird nur kommentarlos die Datei angelegt.

print "Content-type: text/html\n\n";

open(SCHREIBEN,"> /tmp/Perl_Test.dat") or die "Fehler beim Öffnen der
Testdatei: $!\n";
print SCHREIBEN "Wenn's geklappt hat, dann kann der Apache ehrlich
Perl";
close (SCHREIBEN) or die "Fehler beim Schliessen von neu.dat: $!\n";
exit(0);
<----------- schnapp -------------->

Die Datei hat die Rechte 0755 - das Verzeichnis auch.

In /var/log/apache/error.log steht nach wie vor
Premature end of script headers: /home/marc/WWW/cgi-bin/TMP-Schreiben.pl

In /var/log/apache/suexec.log steht
[2003-01-14 10:07:08]: info: (target/actual) uid: (marc/marc) gid:
(marc/marc) cmd: TMP-Schreiben.pl
[2003-01-14 10:07:08]: emerg: cannot get docroot information
(/home/marc)

Allerdings sind sowohl /home als auch /home/marc für go executable.

Der Perl-Interpreter ist auch wirklich bei /usr/bin/perl mit 0755.

Das CGI-Modul (mod_cgi) wird wirklich geladen und auch ausgeführt
(Handler).

Die UserDir-Sektion in der httpd.conf ist
<----------- schnipp -------------->
#
# UserDir: The name of the directory which is appended onto a user's
home
# directory if a ~user request is received.
#
<IfModule mod_userdir.c>
    UserDir WWW
</IfModule>

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory /home/*/WWW/>
    AllowOverride FileInfo AuthConfig Limit
  
    #Die Zeile war's frueher
    #Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    Options MultiViews Indexes SymLinksIfOwnerMatch ExecCGI
    <Limit POST GET OPTIONS PROPFIND>
        Order allow,deny
        Allow from all
    </Limit>
    <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
        Order deny,allow
        Deny from all
    </Limit>
</Directory>
<----------- schnapp -------------->
</Zusammenfassung>
-- 
Marc F. Neininger <marc@champagnierle.de>
edv.mn



Reply to: