Oleg
16.11.01, 17:01
Halllo weider Mal
Ich habe apache und dazu entsprechende PHP und Perl Module installiert.
Ich will, dass CGI Scripte in jedem der Ordner laufen und nicht nur in cgi-bin, weil das einfach komfortabler ist, so wie php scripte. Nun laufen die CGI Scripte aber erstmal gar nicht, die pl bzw cgi Datei will der Server herunterladen lassen und nicht ausführen.
ich habe folgendes gemacht:
ServerName 217.68.170.211
DocumentRoot "/home/oleg/GLftp/site"
<Directory "/home/oleg/GLftp/site">
Options Indexes -FollowSymLinks +Includes MultiViews
AllowOverride None
Order allow,deny
Allow from all
#
# disable WebDAV by default for security reasons.
#
<IfModule mod_dav.c>
DAV Off
</IfModule>
<Files /home/oleg/GLftp/site/index.htm*>
Options -FollowSymLinks +Includes +MultiViews
</Files>
<Files test.php3>
Order deny,allow
deny from all
allow from localhost
</Files>
</Directory>
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm
</IfModule>
ScriptAlias /cgi-bin/ "/home/oleg/GLftp/site"
ScriptAlias /perl/ "/home/oleg/GLftp/site"
ScriptAlias /cgi-perl/ "/home/oleg/GLftp/site/"
</IfModule>
<Location /cgi-bin>
AllowOverride None
Options +ExecCGI -Includes
SetHandler cgi-script
</Location>
<IfModule mod_perl.c>
Perlrequire /usr/include/apache/modules/perl/startup.perl
PerlModule Apache::Registry
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
PerlSendHeader On
</Location>
<Location /cgi-perl>
SetHandler perl-script
PerlHandler Apache::PerlRun
Options ExecCGI
PerlSendHeader On
</Location>
</IfModule>
Ich glaube, das ist alles, was mit Perl zu tun hat
Wo liegt jetzt mein Fehler ?
Ich könnte glauben an den ScriptAlias, aber ohne Wissen, traue ich mich nicht da was zu ändern.
Hoffentlich kann einer helfen
best regards
Oleg
Ich habe apache und dazu entsprechende PHP und Perl Module installiert.
Ich will, dass CGI Scripte in jedem der Ordner laufen und nicht nur in cgi-bin, weil das einfach komfortabler ist, so wie php scripte. Nun laufen die CGI Scripte aber erstmal gar nicht, die pl bzw cgi Datei will der Server herunterladen lassen und nicht ausführen.
ich habe folgendes gemacht:
ServerName 217.68.170.211
DocumentRoot "/home/oleg/GLftp/site"
<Directory "/home/oleg/GLftp/site">
Options Indexes -FollowSymLinks +Includes MultiViews
AllowOverride None
Order allow,deny
Allow from all
#
# disable WebDAV by default for security reasons.
#
<IfModule mod_dav.c>
DAV Off
</IfModule>
<Files /home/oleg/GLftp/site/index.htm*>
Options -FollowSymLinks +Includes +MultiViews
</Files>
<Files test.php3>
Order deny,allow
deny from all
allow from localhost
</Files>
</Directory>
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm
</IfModule>
ScriptAlias /cgi-bin/ "/home/oleg/GLftp/site"
ScriptAlias /perl/ "/home/oleg/GLftp/site"
ScriptAlias /cgi-perl/ "/home/oleg/GLftp/site/"
</IfModule>
<Location /cgi-bin>
AllowOverride None
Options +ExecCGI -Includes
SetHandler cgi-script
</Location>
<IfModule mod_perl.c>
Perlrequire /usr/include/apache/modules/perl/startup.perl
PerlModule Apache::Registry
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
PerlSendHeader On
</Location>
<Location /cgi-perl>
SetHandler perl-script
PerlHandler Apache::PerlRun
Options ExecCGI
PerlSendHeader On
</Location>
</IfModule>
Ich glaube, das ist alles, was mit Perl zu tun hat
Wo liegt jetzt mein Fehler ?
Ich könnte glauben an den ScriptAlias, aber ohne Wissen, traue ich mich nicht da was zu ändern.
Hoffentlich kann einer helfen
best regards
Oleg