Zero: Problem Perl auf dem Apache zum laufen zu bringen

Beitrag lesen

Hallo ich habe mir auf dieser Seite die Verweise zu Perl und dessen Installation durchgelesen, aber bekomme es einfach nicht zum laufen.
In meinem Browser wird nur folgender html code angezeigt:

#!/perl/bin/perl
print "Content-type: text/html\n\n";
print "<h1>Hurra, es klappt!</h1>";

Ich habe ActivePerl in das Verziechnis C:/Perl installiert. Demnach müsste in die Shebang-Zeile #!/perl/bin/perl  ,weil die exe ja in diesem Verzeichnis "bin" liegt.

Meine Apache Configuration sieht wie folgt aus:

C:\Apache\conf\httpd.conf für Apache 2.2.x

Einsatzplattform Windows

ServerRoot "C:/Apache"
PidFile logs/httpd.pid
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15

ThreadsPerChild 250
MaxRequestsPerChild  0

Listen 80

Include "C:/Apache/conf/module.conf"

ServerAdmin  zero8@lycos.de
ServerName  zero.mshome.net:80
DefaultType  text/plain
ErrorLog logs/error.log
LogLevel warn
LogFormat  "%h %l %u %t "r" %>s %b" common

ServerTokens  Full
ServerSignature  On

DocumentRoot "C:/Apache/htdocs"
<Directory />
 Options FollowSymLinks
 AllowOverride None
</Directory>
<Directory "C:/Apache/htdocs">
 Options Indexes FollowSymLinks
 AllowOverride None
 Order allow,deny
 Allow from all
 AddOutputFilter INCLUDES .shtml .shtm
</Directory>

DirectoryIndex index.htm index.html index.shtml index.shtm index.cgi index.php

ScriptAlias /cgi-bin/ "C:/Aapche/htdocs/cgi-bin"
<Directory "C:/Apache/htdocs/cgi-bin">
 AllowOverride None
 Options Indexes FollowSymLinks ExecCGI
 Order allow,deny
 Allow from all
</Directory>

ScriptAlias /php/ "C:/php/"
AddType application/x-httpd-php .php .php4 .phtml
Action Application/x-httpd-php "/php/php-cgi.exe"
<Location /server-status>
 SetHandler server-status
 Order deny,allow
 Deny from all
 Allow from 192.168
</Location>
<Location /server-info>
 SetHandler server-info
 Order deny,allow
 Deny from all
 Allow from 192.168
</Location>

Include "C:/Apache/conf/mime.conf"
Include "C:/Apache/conf/autoindex.conf"

LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/PHP"

AddHandler cgi-script .cgi .pl

Ich habe die cgi-bin in htdocs verschoben, da ich dachte, dass es vielleicht daran liegt, dass ich dieses Dokument über den Browser aufrufe.
Eigentlich war das cgi-bin Verzeichnis unter C:\Apache\cgi-bin.

Ich hoffe ihr könnt mir helfen.

Mit freundlichen Grüßen

Zero