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

Re: Probleme mit dem Apachen



* Marc F. Neininger <marc@champagnierle.de> [10-01-2003 11:13]:

> Ich hab jetzt erstmal den addhandler .cgi/.pl auskommentiert. Dann
> bringt er mir, dass er nicht genügend Rechte hat, um mein Programm
> (liegt in /home/marc/WWW/cgi-bin/) abzuarbeiten. 

Den addhandler .cgi/.pl musst du schon auskommentieren.

> Parallel dazu schau ich jetzt nach ExecCGI. Aber das verlangt wohl
> mod_perl. Hab jetzt nochmal geschaut. Ich hatte den normalen Apachen
> installiert. Und der kann kein mod_perl.

$ dpkg -l "*apache*" | grep ^ii
ii  apache         1.3.26-0woody3 Versatile, high-performance HTTP server
ii  apache-common  1.3.26-0woody3 Support files for all Apache webservers
ii  apache-doc     1.3.26-0woody3 Apache webserver docs

$ grep ^LoadModule /etc/apache/httpd.conf
LoadModule config_log_module /usr/lib/apache/1.3/mod_log_config.so
LoadModule mime_magic_module /usr/lib/apache/1.3/mod_mime_magic.so
LoadModule mime_module /usr/lib/apache/1.3/mod_mime.so
LoadModule negotiation_module /usr/lib/apache/1.3/mod_negotiation.so
LoadModule status_module /usr/lib/apache/1.3/mod_status.so
LoadModule autoindex_module /usr/lib/apache/1.3/mod_autoindex.so
LoadModule dir_module /usr/lib/apache/1.3/mod_dir.so
LoadModule cgi_module /usr/lib/apache/1.3/mod_cgi.so
LoadModule userdir_module /usr/lib/apache/1.3/mod_userdir.so
LoadModule alias_module /usr/lib/apache/1.3/mod_alias.so
LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so
LoadModule access_module /usr/lib/apache/1.3/mod_access.so
LoadModule auth_module /usr/lib/apache/1.3/mod_auth.so
LoadModule expires_module /usr/lib/apache/1.3/mod_expires.so
LoadModule unique_id_module /usr/lib/apache/1.3/mod_unique_id.so
LoadModule setenvif_module /usr/lib/apache/1.3/mod_setenvif.so
LoadModule php4_module /usr/lib/apache/1.3/libphp4.so

<Directory /home/*/public_html/cgi-bin>
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec ExecCGI
    <Limit GET POST 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>

> Sorry, but the following packages have unmet dependencies:
>   apache-perl: Depends: apache-common (< 1.3.27) but 1.3.27-0.1 is to be
> installed
> E: Sorry, broken packages
 
Was ist 1.3.27-0.1 - ein Eigenkompilat oder testing/unstable?

Hier noch ein kleines Test-Script - bei mir funktioniert das.

#!/usr/bin/perl -w
###############################################################
# (c) Michael Schilli 1999
###############################################################

use CGI qw/:standard/;
###############################################################
print header(),                            # CGI-Header
                                           # Startsequenz
      start_html('-title'   => "CGI Dump", #   und Titel
                 '-bgcolor' => "white"),   # Hintergrundfarbe
      h2("Query Parameters:"),             # H2-Überschrift
      CGI::as_string(),           # CGI-Parameter formatiert
      h2("Environment:"),         # H2-Überschrift
                                  # Environment ausgeben
      (map { p("$_ => $ENV{$_}") } sort keys %ENV),
      end_html();                 # Abschluß
####################################################### EOF ###

Gruss Uwe

Attachment: pgpTw1KB1a2DX.pgp
Description: PGP signature


Reply to: