cgi - ich werde wahnsinnig!!
Posted: 2002-06-21 11:16
ich bekomme es nicht gebacken, scripte auf dem server auszuführen!
ich habe schon alles probiert und mir sämtliche beiträge zu dem thema im forum durchgelesen.
also ich möchte, dass jeder benutzer sein eigenes cgi-bin verzeichnis hat, hier ein auszug aus meiner httpd.conf:
# ScriptAlias /cgi-bin/ "/usr/local/httpd/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/ "/usr/local/httpd/cgi-bin/"
# for Apache::Perlrun Mode
#ScriptAlias /cgi-perl/ "/usr/local/httpd/cgi-bin/"
</IfModule>
#
# "/usr/local/httpd/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/usr/local/httpd/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</IfModule>
<Directory "/home/www/web3/html/cgi-bin">
Options +ExecCGI
SetHandler cgi-script
</Directory>
# 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>
ich kann hier keinen fehler finden!!!!
hat jemand einen rat für mich :?:
Nachtrag:
beim ausführen des scriptes erhalte ich folgende fehlermeldung (suexec.log):
[2002-06-21 11:03:22]: info: (target/actual) uid: (web3/web3) gid: (ftponly/ftponly) cmd: FormMail.pl
[2002-06-21 11:03:22]: error: command not in docroot (/home/www/web3/html/cgi-bin/FormMail.pl)
ich habe schon alles probiert und mir sämtliche beiträge zu dem thema im forum durchgelesen.
also ich möchte, dass jeder benutzer sein eigenes cgi-bin verzeichnis hat, hier ein auszug aus meiner httpd.conf:
# ScriptAlias /cgi-bin/ "/usr/local/httpd/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/ "/usr/local/httpd/cgi-bin/"
# for Apache::Perlrun Mode
#ScriptAlias /cgi-perl/ "/usr/local/httpd/cgi-bin/"
</IfModule>
#
# "/usr/local/httpd/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/usr/local/httpd/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</IfModule>
<Directory "/home/www/web3/html/cgi-bin">
Options +ExecCGI
SetHandler cgi-script
</Directory>
# 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>
ich kann hier keinen fehler finden!!!!
hat jemand einen rat für mich :?:
Nachtrag:
beim ausführen des scriptes erhalte ich folgende fehlermeldung (suexec.log):
[2002-06-21 11:03:22]: info: (target/actual) uid: (web3/web3) gid: (ftponly/ftponly) cmd: FormMail.pl
[2002-06-21 11:03:22]: error: command not in docroot (/home/www/web3/html/cgi-bin/FormMail.pl)