Page 1 of 1

cgi - ich werde wahnsinnig!!

Posted: 2002-06-21 11:16
by bytemare
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 bin mir da als Newbie nicht sicher, aber

Posted: 2002-06-21 12:34
by efendim
vieleicht hilft der Link.
http://faq.puretec.de/server/root_server/bugfx/5.html

Gruß Michael

Re: Ich bin mir da als Newbie nicht sicher, aber

Posted: 2002-06-21 16:21
by bytemare
efendim wrote:vieleicht hilft der Link.
http://faq.puretec.de/server/root_server/bugfx/5.html

Gruß Michael
SUPER!!!

problem gelöst, danke

Re: cgi - ich werde wahnsinnig!!

Posted: 2003-08-22 03:50
by strikernet
hi

bei mir hilft das nicht. ich habe einen root server bei 1und1 und habe den apache 1.3 deinstalliert und nach dem tut den apache 2.0 drauf gemacht.


wenn ich nun ein cgi-script ausfuehren will, bekomme ich folgende fehlermeldung:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@xxx.de 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/2.0.47 (Unix) PHP/4.3.2 Server at http://www.xxx.de Port 80


suexec log: user mismatch (wwwrun instead of www)

error log: Premature end of script headers: ikonboard.cgi

ich hab die installation so wie im tut durchgefuehrt, nur halt noch mit suexec und ssl.

muss ich da vielleicht noch was abaendern ??

Re: cgi - ich werde wahnsinnig!!

Posted: 2003-08-22 04:30
by jamesb
strikernet wrote:suexec log: user mismatch (wwwrun instead of www)
Blindfisch! (sorry :-))
Da steht, dass dein Script dem falschen User gehört, nämlich "wwwrun" anstatt "www", unter dem es ausgeführt werden soll.

JamesB