Webserver (Apache oder MS IIS) richtig für die Ausführung von
CGI-Scripts konfiguriert?
Apache liegt unter D:/Apache/Apache.exe
Perl liegt auf d:/usr/bin/perl.exe
mit ActivePerl-5.6.0.623-MSWin32-x86-multi-thread.msi installiert.
Ausschnitt aus meiner httpd.conf
63: ServerRoot „d:/Apache“
267: DocumentRoot „h:/Webs“
282: # Note that from this point forward you must specifically allow
particular features to be enabled - so if something’s not working as
you might expect, make sure that you have specifically enabled it
below.
This should be changed to whatever you set DocumentRoot to.
525: # To enable the this Windows specific behavior (and therefore -disable- the
equivilant Unix behavior), uncomment the following directive:
ScriptInterpreterSource registry
556: # ScriptAlias: This controls which directories contain server scripts.
ScriptAliases are essentially the same as Aliases, except that
documents in the realname directory are treated as applications and
run by the server when requested rather than as documents sent to the client.
The same rules about trailing „/“ apply to ScriptAlias directives as to
Alias.
ScriptAlias /cgi-bin/ „d:/Apache/cgi-bin/“
ScriptAlias /perl/ „d:/usr/bin/“
„d:/Apache/cgi-bin“ should be changed to whatever your ScriptAliased
CGI directory exists, if you have that configured.
AllowOverride None
Options All
Order allow,deny
Allow from all
778: # If you want to use server side includes, or CGI outside
ScriptAliased directories, uncomment the following lines.
To use CGI scripts:
AddHandler cgi-script .cgi
811: # Action lets you define media types that will execute a script whenever
a matching file is called. This eliminates the need for repeated URL
pathnames for oft-used CGI file processors.
Format: Action media/type /cgi-script/location
Format: Action handler-name /cgi-script/location
Action application/x-httpd-perl „/perl/perl.exe“
ich starte test.pl (Hallo Welt) im IE unter localhost/test.pl Hinweis: Forbidden, no permision
localhost/cgi-bin/test.pl Internal Server Error
Kann mir jemand unter Zuhilfenahme dieser Daten helfen?
Sven