ich wollte gerade eben auf meinem neuen dedicated server mit dem neusten suse ein paar cgi-skripte installieren, leider erhalte ich - egal was ich mache nen Error 500 beim aufruf des entsprechenden Skriptes.
Ich lade die Dateien als root hoch (ich weiß, sollte man eigentlich nicht), aber durch ein chmod 755 sollten die rechte trotzdem korrekt gesetzt sein. In der Console kann ich mit "perl /srv/www/cgi-bin/test.pl" die Datei ohne Probleme ausführen...nur Apache weigert sich partout.
In der Apache-Errorlog finde ich nach jedem Aufruf einer Perldatei einen derartigen Eintrag:
Code: Select all
[Sun Jun 1 20:28:47 2003] [error] (2)No such file or directory: exec of /srv/www/cgi-bin/test.pl failed
[Sun Jun 1 20:28:47 2003] [error] [client 217.236.xxx.xxx] Premature end of script headers: /srv/www/cgi-bin/test.plCode: Select all
ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/"
<IfModule mod_perl.c>
# 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/ "/srv/www/cgi-bin/"
# for Apache::Perlrun Mode
ScriptAlias /cgi-perl/ "/srv/www/cgi-bin/"
</IfModule>
#
# "/srv/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/srv/www/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</IfModule>
# End of aliases.
#
# set /cgi-bin for CGI execution
#
<Location /cgi-bin>
AllowOverride None
Options +ExecCGI -Includes
SetHandler cgi-script
</Location>
#
# If mod_perl is activated, load configuration information
#
<IfModule mod_perl.c>
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>
</IfModule>
zu guter letzte noch ein "ls- la"-auszug mit dem cgi-bin:
Code: Select all
drwxr-xr-x 2 root root 72 Jun 1 16:05 cgi-binCode: Select all
drwxr-xr-x 2 root root 72 Jun 1 16:05 .
drwxr-xr-x 6 root root 144 Dec 2 14:53 ..
-rwxr-xr-x 1 root root 86 Jun 1 15:33 test.pl
cu,
Sebastian