Page 1 of 1

.pl und .cgi nicht ausführbar

Posted: 2004-01-05 16:06
by mogul2001
Hi,

ich habe folgendes problem, ich kann auf meinem Rootie keine .pl und .cgi dateien ausführen.

webbrowser:
Internal Server Error

suexec.log:
[2004-01-05 15:55:21]: info: (target/actual) uid: (web2/web2) gid: (ftponly/ftponly) cmd: test.cgi
[2004-01-05 15:55:21]: error: directory is writable by others: (/home/www/web2/html/cgi-bin)

Bitte helft mir.

Gruss

Sebastian

Re: .pl und .cgi nicht ausführbar

Posted: 2004-01-05 16:41
by oxygen
Der Fehler steht doch da:
[2004-01-05 15:55:21]: error: directory is writable by others: (/home/www/web2/html/cgi-bin)

Re: .pl und .cgi nicht ausführbar

Posted: 2004-01-05 16:58
by mogul2001
und was muss ich genau dagegen machen ??

gruss

Sebastian

Re: .pl und .cgi nicht ausführbar

Posted: 2004-01-05 16:59
by arty
Bist du dir sicher, dass du das Wissen hast, einen Server im Internet zu betreiben?

bye
arty

Re: .pl und .cgi nicht ausführbar

Posted: 2004-01-05 17:04
by mogul2001
ka

ich habe die zugriffsrechte von dem verzeichnis geändert, aber da tut sich nichts.

gruss

Sebastian

Re: .pl und .cgi nicht ausführbar

Posted: 2004-01-05 17:11
by Joe User

Code: Select all

ls -alh /home/www/web2/html

Re: .pl und .cgi nicht ausführbar

Posted: 2004-01-05 17:14
by oxygen

Code: Select all

chmod o-w /home/www/web2/html/cgi-bin

Re: .pl und .cgi nicht ausführbar

Posted: 2004-01-05 17:17
by mogul2001
pxxxxxxxx:/home/www/web2/html # ls -alh /home/www/web2/html
insgesamt 80K
drwxr-xr-x 8 web2 ftponly 4.0K 2004-01-05 14:05 .
dr-xr-x--- 9 web2 www 4.0K 2004-01-05 16:07 ..
drwxr-xr-x 2 web2 ftponly 4.0K 2004-01-05 14:49 cgi-bin
-rw-r--r-- 1 web2 ftponly 559 2003-12-04 23:00 index.php
-rw-r--r-- 1 web2 ftponly 274 2003-12-04 22:16 pw.php
drwxr-xr-x 2 web2 ftponly 4.0K 2003-09-19 16:06 ted
-rw-r--r-- 1 root root 16 2003-09-21 15:05 test.php
drwxr-xr-x 6 web2 ftponly 4.0K 2003-12-09 20:05 umfrage
pxxxxxxxx:/home/www/web2/html #

Re: .pl und .cgi nicht ausführbar

Posted: 2004-01-05 17:20
by mogul2001
mit

Code: Select all

chmod o-w /home/www/web2/html/cgi-bin
geht es auch nicht.

gruss

sebastian

Re: .pl und .cgi nicht ausführbar

Posted: 2004-01-05 17:23
by mogul2001
also auf web1 bis webXXX geht cgi nicht.

gruss

Sebastian

Re: .pl und .cgi nicht ausführbar

Posted: 2004-01-05 17:26
by bodo
mach mal ein:

Code: Select all

chown -R web2.ftponly /home/www/web2/html

Re: .pl und .cgi nicht ausführbar

Posted: 2004-01-05 17:32
by mogul2001
hi

ich bekomm immer noch als Fehlermeldung: 500 Internal Server Error.

suexec.log

[2004-01-05 17:29:49]: info: (target/actual) uid: (web2/web2) gid: (ftponly/ftponly) cmd: test.cgi
[2004-01-05 17:30:15]: info: (target/actual) uid: (web2/web2) gid: (ftponly/ftponly) cmd: test.cgi
[2004-01-05 17:30:15]: info: (target/actual) uid: (web2/web2) gid: (ftponly/ftponly) cmd: test.cgi
[2004-01-05 17:30:16]: info: (target/actual) uid: (web2/web2) gid: (ftponly/ftponly) cmd: test.cgi

Gruss

Sebastian

Re: .pl und .cgi nicht ausführbar

Posted: 2004-01-05 17:35
by bodo
hm ggf. doch einfach mal suchen im board:

http://www.rootforum.org/forum/viewtopi ... uexec+pfad

Re: .pl und .cgi nicht ausführbar

Posted: 2004-01-05 17:38
by oxygen
mogul2001 wrote:hi

ich bekomm immer noch als Fehlermeldung: 500 Internal Server Error.

suexec.log

[2004-01-05 17:29:49]: info: (target/actual) uid: (web2/web2) gid: (ftponly/ftponly) cmd: test.cgi
[2004-01-05 17:30:15]: info: (target/actual) uid: (web2/web2) gid: (ftponly/ftponly) cmd: test.cgi
[2004-01-05 17:30:15]: info: (target/actual) uid: (web2/web2) gid: (ftponly/ftponly) cmd: test.cgi
[2004-01-05 17:30:16]: info: (target/actual) uid: (web2/web2) gid: (ftponly/ftponly) cmd: test.cgi

Gruss

Sebastian
Dann ist das Script kaputt. Eine Fehlermeldung von SuExec steht da ja nicht (mehr).

Re: .pl und .cgi nicht ausführbar

Posted: 2004-01-05 18:03
by mogul2001
nun geht wieder alles, lag an einer einstellung in der httpd.conf


gruss

sebastian

Re: .pl und .cgi nicht ausführbar

Posted: 2004-01-07 10:14
by major (jgbtl511)
Mhh wär nett wenn du uns auch mitteilen könntest wwelche Einstellung es war. Habe auch das gleiche Prob.

Gruß

Major

Re: .pl und .cgi nicht ausführbar

Posted: 2004-02-12 09:08
by Anonymous
Hallo zusammen,
da ich das gleiche Problem habe, wie es bereits oben geschildert wurde, hoffe ich, dass sich jemand erbarmt und eine Lösung hat, die er dann auch ins Forum einstellt.
Schönen Tag noch
wollis

Re: .pl und .cgi nicht ausführbar

Posted: 2004-02-12 13:08
by Joe User

Code: Select all

<Directory "/srv/www/cgi-bin">
	AllowOverride None
	Options +ExecCGI -Includes
	Order allow,deny
	Allow from all
</Directory>

Re: .pl und .cgi nicht ausführbar

Posted: 2004-02-12 13:59
by Anonymous
Danke erst einmal für die Hilfestelung.
Hab ich drinstehen (genau wie beschrieben).
script.pl ist auf 744 gesetzt
Ergebnisse:
1) Wenn Ordner cgi-bin (hier steht das scirpt drin) unterhalb von 777 (z. B. 755), dann Anzeige "Forbidden - You don't have permission to access /cgi-bin/script.pl on this server."
2) Wenn Ordner cgi-bin 777, dann Anzeige "Internal Server Error - The server encountered an internal error or misconfiguration and was unable to complete your request."
MfG
ein etwas verzweifelter
wollis ;-) (noch)