Výsledky 1 až 3 z 3

Téma: cgi a apache

Hybrid View

Předcházející příspěvek Předcházející příspěvek   Další příspěvek Další příspěvek
  1. #1

    Standardní cgi a apache

    Zdravim , v cgi normalne vubec nedelam ale chci si vyzkouset awstats a na to potrebuju rozchodit perl na apache 2, nastaveny se mi to zda v pohode:

    ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"

    <Directory "/usr/local/apache2/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
    </Directory>
    Sem nede cet ze tohle uz staci a melo by vsechno fungovat, ale nejde ,hlasi to tohle :
    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, you@your.address and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.
    jeste kod:
    #!/usr/bin/perl
    ##
    ## printenv -- demo CGI program which just prints its environment
    ##

    print "Content-type: text/plain\n\n";
    foreach $var (sort(keys(%ENV))) {
    $val = $ENV{$var};
    $val =~ s|\n|\\n|g;
    $val =~ s|"|\\"|g;
    print "${var}=\"${val}\"\n";
    }
    jeto nejakej standartni program co uz je v apachi. co tet ?
    *NIX GG

  2. #2

    Standardní

    kdyz ten perli script pustis ruco udela co ma ?
    Hrrrr, will you stop using people as human driven search engines? Google.com has all the answers you need.

  3. #3

    Standardní

    no nic nenapadlo me zkontrolovat prava, takze chmod to poresil
    *NIX GG

Informace o tématu

Users Browsing this Thread

Toto téma si právě prohlíží 1 uživatelů. (0 registrovaných a 1 anonymních)

Pravidla přispívání

  • Nemůžete zakládat nová témata
  • Nemůžete zasílat odpovědi
  • Nemůžete přikládat přílohy
  • Nemůžete upravovat své příspěvky
  •