.pl und .cgi nicht ausführbar

Apache, Lighttpd, nginx, Cherokee
Post Reply
mogul2001
Posts: 11
Joined: 2003-10-20 17:35
 

.pl und .cgi nicht ausführbar

Post 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
oxygen
Posts: 2138
Joined: 2002-12-15 00:10
Location: Bergheim
 

Re: .pl und .cgi nicht ausführbar

Post 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)
mogul2001
Posts: 11
Joined: 2003-10-20 17:35
 

Re: .pl und .cgi nicht ausführbar

Post by mogul2001 »

und was muss ich genau dagegen machen ??

gruss

Sebastian
arty
Userprojekt
Userprojekt
Posts: 729
Joined: 2002-06-12 10:11
Contact:
 

Re: .pl und .cgi nicht ausführbar

Post by arty »

Bist du dir sicher, dass du das Wissen hast, einen Server im Internet zu betreiben?

bye
arty
mogul2001
Posts: 11
Joined: 2003-10-20 17:35
 

Re: .pl und .cgi nicht ausführbar

Post by mogul2001 »

ka

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

gruss

Sebastian
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: .pl und .cgi nicht ausführbar

Post by Joe User »

Code: Select all

ls -alh /home/www/web2/html
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
oxygen
Posts: 2138
Joined: 2002-12-15 00:10
Location: Bergheim
 

Re: .pl und .cgi nicht ausführbar

Post by oxygen »

Code: Select all

chmod o-w /home/www/web2/html/cgi-bin
mogul2001
Posts: 11
Joined: 2003-10-20 17:35
 

Re: .pl und .cgi nicht ausführbar

Post 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 #
mogul2001
Posts: 11
Joined: 2003-10-20 17:35
 

Re: .pl und .cgi nicht ausführbar

Post by mogul2001 »

mit

Code: Select all

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

gruss

sebastian
mogul2001
Posts: 11
Joined: 2003-10-20 17:35
 

Re: .pl und .cgi nicht ausführbar

Post by mogul2001 »

also auf web1 bis webXXX geht cgi nicht.

gruss

Sebastian
bodo
Posts: 99
Joined: 2002-12-29 11:55
Location: Nürnberg
 

Re: .pl und .cgi nicht ausführbar

Post by bodo »

mach mal ein:

Code: Select all

chown -R web2.ftponly /home/www/web2/html
mogul2001
Posts: 11
Joined: 2003-10-20 17:35
 

Re: .pl und .cgi nicht ausführbar

Post 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
bodo
Posts: 99
Joined: 2002-12-29 11:55
Location: Nürnberg
 

Re: .pl und .cgi nicht ausführbar

Post by bodo »

hm ggf. doch einfach mal suchen im board:

http://www.rootforum.org/forum/viewtopi ... uexec+pfad
oxygen
Posts: 2138
Joined: 2002-12-15 00:10
Location: Bergheim
 

Re: .pl und .cgi nicht ausführbar

Post 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).
mogul2001
Posts: 11
Joined: 2003-10-20 17:35
 

Re: .pl und .cgi nicht ausführbar

Post by mogul2001 »

nun geht wieder alles, lag an einer einstellung in der httpd.conf


gruss

sebastian
major (jgbtl511)
Posts: 22
Joined: 2003-08-02 09:01
 

Re: .pl und .cgi nicht ausführbar

Post 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
Anonymous
 

Re: .pl und .cgi nicht ausführbar

Post 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
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: .pl und .cgi nicht ausführbar

Post by Joe User »

Code: Select all

<Directory "/srv/www/cgi-bin">
	AllowOverride None
	Options +ExecCGI -Includes
	Order allow,deny
	Allow from all
</Directory>
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Anonymous
 

Re: .pl und .cgi nicht ausführbar

Post 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)
Post Reply