Archiv verlassen und diese Seite im Standarddesign anzeigen : Problem mit CGI-Dateien aufrufen
Hallo,
Ich habe ein Programm runtergeladen , dass PERL verwendet.
Ich habe nachgesehen das Programm verlangt PERL in einem Bestimten Ordner sonst gehts nicht.
Perl ist auch in diesem Ordner installiert und leuft ...
Aber immer wenn ich dann "admin.cgi" aufrufe kommt:
Forbidden
You don't have permission to access /admin/html/admin.cgi on this server.
Apache/1.3.27 Server at linux.local Port 80
ich habe sogar schon dem ganzen ordner ( und allen Dateien ) chmod -R 777 rechte gegeben das kommt trozdem :(
Mache ich irgenteinen Fehler?
Danke
Mache ich irgenteinen Fehler?
Ja. Du liest die Logfiles von Apache nicht (poste doch
bitte die Ausgabe von /var/log/apache/error_log)
Thomas
du brauchst für die Datei
/admin/html/admin.cgi mindestens lese- und ausführrechte
chmod 755 /admin/html/admin.cgi
dann solte es gehn
Original geschrieben von himbeere
Ja. Du liest die Logfiles von Apache nicht (poste doch
bitte die Ausgabe von /var/log/apache/error_log)
Thomas
Moment poste ich sofort
Original geschrieben vonmichael19
du brauchst für die Datei
/admin/html/admin.cgi mindestens lese- und ausführrechte
chmod 755 /admin/html/admin.cgi
dann solte es gehn
wie gesagt habe schon allen daten chmod rechte 777 gegeben und es geht net:eek:
das spuckt apache aus:
[Mon Oct 27 15:00:51 2003] [notice] Apache/1.3.27 (Linux/SuSE) PHP/4.3.1 configured -- resuming normal operations
[Mon Oct 27 15:00:51 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Oct 27 15:00:51 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Mon Oct 27 15:13:51 2003] [crit] (98)Address already in use: make_sock: could not bind to port 80
[Mon Oct 27 15:13:57 2003] [crit] (98)Address already in use: make_sock: could not bind to port 80
[Mon Oct 27 15:14:36 2003] [notice] caught SIGTERM, shutting down
[Mon Oct 27 15:14:45 2003] [notice] Apache/1.3.27 (Linux/SuSE) PHP/4.3.1 configured -- resuming normal operations
[Mon Oct 27 15:14:45 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Oct 27 15:14:45 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Mon Oct 27 15:21:12 2003] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /srv/www/htdocs/reseller/index.cgi
[Mon Oct 27 15:21:18 2003] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /srv/www/htdocs/reseller/reseller.cgi
[Mon Oct 27 15:21:21 2003] [error] [client 127.0.0.1] (13)Permission denied: cannot read directory for multi: /srv/www/htdocs/admin/
[Mon Oct 27 15:21:21 2003] [error] [client 127.0.0.1] (13)Permission denied: cannot read directory for multi: /srv/www/htdocs/admin/
[Mon Oct 27 15:21:21 2003] [error] [client 127.0.0.1] (13)Permission denied: cannot read directory for multi: /srv/www/htdocs/admin/
[Mon Oct 27 15:21:21 2003] [error] [client 127.0.0.1] (13)Permission denied: cannot read directory for multi: /srv/www/htdocs/admin/
[Mon Oct 27 15:36:07 2003] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /srv/www/htdocs/reseller/index.cgi
[Mon Oct 27 15:36:10 2003] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /srv/www/htdocs/reseller/html/reseller.cgi
[Mon Oct 27 15:36:55 2003] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /srv/www/htdocs/reseller/html/reseller.cgi
[Mon Oct 27 15:36:57 2003] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /srv/www/htdocs/reseller/html/reseller.cgi
[Mon Oct 27 15:37:01 2003] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /srv/www/htdocs/reseller/reseller.cgi
[Mon Oct 27 15:37:03 2003] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /srv/www/htdocs/reseller/index.cgi
[Mon Oct 27 15:37:14 2003] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /srv/www/htdocs/reseller/index.cgi
[Mon Oct 27 15:37:14 2003] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /srv/www/htdocs/reseller/index.cgi
[Mon Oct 27 15:37:40 2003] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /srv/www/htdocs/reseller/index.cgi
[Mon Oct 27 15:37:41 2003] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /srv/www/htdocs/reseller/index.cgi
[Mon Oct 27 15:37:47 2003] [notice] caught SIGTERM, shutting down
[Mon Oct 27 15:37:56 2003] [notice] Apache/1.3.27 (Linux/SuSE) PHP/4.3.1 configured -- resuming normal operations
[Mon Oct 27 15:37:56 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Oct 27 15:37:56 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Mon Oct 27 15:38:02 2003] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /srv/www/htdocs/admin/index.cgi
[Mon Oct 27 15:38:10 2003] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /srv/www/htdocs/admin/index.cgi
[Mon Oct 27 15:38:15 2003] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /srv/www/htdocs/reseller/index.cgi
[Mon Oct 27 15:40:38 2003] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /srv/www/htdocs/reseller/reseller.cgi
[Mon Oct 27 15:40:39 2003] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /srv/www/htdocs/reseller/reseller.cgi
[Mon Oct 27 15:41:07 2003] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /srv/www/htdocs/reseller/reseller.cgi
[Mon Oct 27 15:41:12 2003] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /srv/www/htdocs/admin/admin.cgi
[Mon Oct 27 15:41:17 2003] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /srv/www/htdocs/admin/html/admin.cgi
[Mon Oct 27 15:41:50 2003] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /srv/www/htdocs/admin/html/admin.cgi
[Mon Oct 27 15:49:46 2003] [notice] caught SIGTERM, shutting down
[Mon Oct 27 17:33:38 2003] [notice] Apache/1.3.27 (Linux/SuSE) PHP/4.3.1 configured -- resuming normal operations
[Mon Oct 27 17:33:38 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Oct 27 17:33:38 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Mon Oct 27 17:33:49 2003] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /srv/www/htdocs/reseller/index.cgi
[Mon Oct 27 17:34:00 2003] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /srv/www/htdocs/reseller/html/reseller.cgi
[Mon Oct 27 17:51:19 2003] [notice] caught SIGTERM, shutting down
[Tue Oct 28 12:25:56 2003] [notice] Apache/1.3.27 (Linux/SuSE) PHP/4.3.1 configured -- resuming normal operations
[Tue Oct 28 12:25:56 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Oct 28 12:25:56 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Tue Oct 28 12:26:23 2003] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /srv/www/htdocs/reseller/index.cgi
mhhh irgentwie ist CGI in diesem Verzeichnis aus verstehe ich das richtig?
Wie kann ich es denn dort Freischalten?
Danke
Sorry, die Rechte hab ich überlesen,
ist in dem Verzeichnis eine Datei .htaccess?
mit der kann man Options ExecCGI ein und ausschalten
Michael
nein dort ist keine htaccess drinne
weiß einer wo das prob ist?
netzmeister
28.10.03, 19:54
Hallo,
das stht doch im Logfile. CGI ist aus, für das von Dir verwendete Vezeichnis.
Das ist auch gut so, aus Sicherheitsgründen.
Bitte versuche es doch einefach mal mit der datei im CGI-verzeichnis.
Viele Grüße
Eicke
das cgi verzeichnis kann man ja nicht über http://localhost aufrufen :confused:
ich habe das so:
/srv/www/htdocs/
-> dort dann /admin/admin.cgi
/srv/www/cgi-bin/
-> dort dann das selbe aber man kann nicht so aufrufen:
http://localhost/cgi-bin
dann kommt ne error Seite.
weil http auf /srv/www/htdocs eingestellt ist.
Was muss ich machen?
Danke für eure Hilfe ich schaffe das net alleine. :(
Hi,
ich habe das gleiche Problem.
In der error_log stand folgendes:
[Sun Nov 30 17:27:16 2003] [error] (8)Exec format error: exec of /srv/www/cgi-bin/index.cgi failed
[Sun Nov 30 17:27:16 2003] [error] [client 127.0.0.1] Premature end of script headers: /srv/www/cgi-bin/index.cgi
Was muß denn in der httpd.conf stehen damit cgi Scripte überhaupt ausgeführt werden?
kurm_de
Original geschrieben von kurm_de
Hi,
ich habe das gleiche Problem.
In der error_log stand folgendes:
[Sun Nov 30 17:27:16 2003] [error] (8)Exec format error: exec of /srv/www/cgi-bin/index.cgi failed
[Sun Nov 30 17:27:16 2003] [error] [client 127.0.0.1] Premature end of script headers: /srv/www/cgi-bin/index.cgi
Was muß denn in der httpd.conf stehen damit cgi Scripte überhaupt ausgeführt werden?
kurm_de
Das schreit eher nach Datei nicht im ASCII hochgeladen..
wo muß ich denn was hochladen?
ich habe hier auf meinem Notebook Suse 8.2 + Apache drauf. In dem Verzeichnis /srv/www/cgi-bin
hab ich eine Datei erstellt ---> index.cgi
Und diese Datei wollte ich im Browser aufrufen.
Ich habs mit //localhost/index.cgi
und mit //localhost/cgi-bin/index.cgi
ausprobiert.
Aber beides funktioniert nicht.
kurm_de
Original geschrieben von DJ.RIGO
ich habe das so:
/srv/www/htdocs/
-> dort dann /admin/admin.cgi
<Directory "/srv/www/htdocs/admin/">
Options +ExecCGI
AllowOverride None
</Directory>Schreib das mal in deine httpd.conf rein.
Original geschrieben von kurm_de
ich habe hier auf meinem Notebook Suse 8.2 + Apache drauf. In dem Verzeichnis /srv/www/cgi-bin
hab ich eine Datei erstellt ---> index.cgi
Und diese Datei wollte ich im Browser aufrufen.
Ich habs mit //localhost/index.cgi
und mit //localhost/cgi-bin/index.cgi
ausprobiert.
Aber beides funktioniert nicht.
//localhost/ sieht ziemlich nach Samba aus.
http://localhost/ wäre Browsermäßig ganz ok.
Was steht denn in der index.cgi?
In der index.cgi steht:
#!/usr/bin/perl
print "test";
Ich hoffe das ich da keinen Fehler drin habe.
kurm_de
Versuchs damit
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "test";
Gruß
elevator
.... hab ich gemacht dann bekomm ich die Fehlermeldung
Forbidden
You don't have permission to access /admin/index.cgi on this server.
kurm_de
Welche Rechte hat denn die index.cgi zur Zeit?
Gruß
elevator
ich hab dem Script alle Rechte gegeben aber funktioniert immer noch nicht wieder die gleiche Fehlermeldung.
kurm_de
Alle Rechte = chmod 777? Kann zuviel sein, ausserdem ist es überflüssig & für die Sicherheit nicht gerade hilfreich.
Läuft suexec? Welchem User & welcher Gruppe gehört das File? Was steht jetzt im error_log? Welche Rechte hat das Verzeichnis admin?
Gruß
elevator
ob suexec läuft weis ich nicht, wo kann man das denn sehen?
ich glaub aber nicht, da ich nur die eine error_log im Ordner hab.
kurm_de
Powered by vBulletin® Version 4.2.5 Copyright ©2024 Adduco Digital e.K. und vBulletin Solutions, Inc. Alle Rechte vorbehalten.