PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : apache und cgi?



sm0ker
27.09.01, 17:53
tag!
also meine distri is des suse 7.0 und ich hab den apache installt und des perl modul. wenn ich nun aber auf cgis zugreifen will sagt der immer:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [no address given] 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.

--------------------------------------------------------------------------------

Apache/1.3.12 Server at linux.gamers Port 80

auszuege aus meiner config:

DocumentRoot "/public_html/htdocs"
ScriptAlias /cgi-bin/ "/public_html/cgi-bin/"
<IfDefine PERL>
# Provide two aliases to the same cgi-bin directory,
# to see the effects of the 2 different mod_perl modes.
# for Apache::Registry Mode
ScriptAlias /perl/ "/public_html/cgi-bin/"
# for Apache::Perlrun Mode
ScriptAlias /cgi-perl/ "/public_html/cgi-bin/"
</IfDefine>
#
# "/usr/local/httpd/cgi-bin" should be changed to whatever your ScriptAliase
# CGI directory exists, if you have that configured.
#
<Directory "/public_html/cgi-bin/">
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
</Directory>
</IfModule>
# cgi-bin for SuSE help system
# using SetHandler
<Directory /public_html/cgi-bin>
AllowOverride None
Options +ExecCGI -Includes
SetHandler cgi-script
</Directory>

#
# set /cgi-bin for CGI execution
#
<Location /cgi-bin>
AllowOverride None
Options +ExecCGI -Includes
SetHandler cgi-script
</Location>
<IfDefine PERL>
Perlrequire /usr/include/apache/modules/perl/startup.perl
PerlModule Apache::Registry

#
# set Apache::Registry Mode for /perl Alias
#
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
PerlSendHeader On
</Location>

#
# set Apache::PerlRun Mode for /cgi-perl Alias
#
<Location /cgi-perl>
SetHandler perl-script
PerlHandler Apache::PerlRun
Options ExecCGI
PerlSendHeader On
</Location>

</IfDefine>

hatte schon die neueste version des apache neu installiert aber da kam der gleiche fehler. woran koennte es liegen?
des dir /public_html existiert, darin ist /htdocs welches wunderbar geht und /cgi-bin welches scheinbar nicht geht. das cgi hat den mod 755
in der error_log steht folgendes:

[Thu Sep 27 18:53:46 2001] [error] (2)No such file or directory: exec of /public_html/cgi-bin/env.pl failed
[Thu Sep 27 18:53:46 2001] [error] [client 192.168.1.4] Premature end of script headers: /public_html/cgi-bin/env.pl

woran koennte das liegen?

netzmeister
29.09.01, 22:19
Hallo,

hast Du die Scripte im Binär-Modus auf den Server übertragen?

Grüsse