WITAM
BARDZO PROSZĘ O POMOC, DOSTAŁEM TEN ADRES
OD KOGOŚ KTO CHCIAŁ MI POMÓC Z GRUPY NA KTÓRĄ
RZUCIŁEM NASTĘPUJĄCY LIST:
Witam !
Mam taki problem iż, skpypt w perlu nie działa uruchomiony
w przegładarce Netscape.
Natomiast skrypt w C który był już po zainstalowaniu
Linuxa red hata w katalogu /home/httpd/cgi-bin/ o nazwie CACHEMGR.CGI
działa. Po umieszczeniu skryptu w tym
INTERNAL SERVER ERROR
the server encountered an internet error or misconfiguration and was unable
to complete your trequest. itd
#!/usr/bin/perl
print "Content-Type: text/plain\n\n";
print "Witaj, czesc, Hello World.\n";
OTRZYMAŁEM ODPOWIEDZ OD LUDZI I PO
PÓŻNIEJ
Dziekuje za odpowiedz. Zaraz sprawdziłem i oto efekt;
1) ustawiłem atrybuty 755, oraz nobody
NIC
2) usunąłem print "HTTP/1.0 200 OK\n";
NIC
3) Lokalizacja perla whereis perl
komunikat /usr/bin/perl i jeszcze inne ale pliki perl5."jakieś cyfry"
4) Po uruchumieniu bez su
- dla pliku one.cgi
bash: ./one.cgi: No such file or directory
- dla pliku nph-one.cgi o takim samej treści
Illegal character \015 (Carriage return) at ./one-nph.cgi
line 2 (Maybe you didn't stip carriage returns after a network
transfer?)
5) zainstalowałem Linuxa Caldery i tam wszystko chodziło ale
zależy mi na Red Hac'ie.
6) Zainstalowałem red Hata jeszce raz ale nic
to nowe error.log z /var/log/httpd/
[Tue Jun 1 22:58:45 1999] created shared memory segment #0
[Tue Jun 1 22:58:45 1999] Server configured -- resuming normal operations
[Tue Jun 1 23:31:58 1999] httpd: caught SIGTERM, shutting down
[Tue Jun 1 23:33:16 1999] created shared memory segment #0
[Tue Jun 1 23:33:16 1999] Server configured -- resuming normal operations
exec of /home/httpd/cgi-bin/one.cgi failed, reason: No such file or
directory (errno = 2)
[Tue Jun 1 23:36:21 1999] access to /home/httpd/cgi-bin/one.cgi failed for
127.0.0.1, reason: Premature end of script headers
Illegal character \015 (carriage return) at /home/httpd/cgi-bin/nph-one.cgi
line 2.
(Maybe you didn't strip carriage returns after a network transfer?)
exec of /home/httpd/cgi-bin/one.CGI failed, reason: No such file or
directory (errno = 2)
[Tue Jun 1 23:37:50 1999] access to /home/httpd/cgi-bin/one.CGI failed for
127.0.0.1, reason: Premature end of script headers
[Tue Jun 1 23:37:56 1999] access to /home/httpd/cgi-bin/one failed for
127.0.0.1, reason: script not found or unable to stat
exec of /home/httpd/cgi-bin/one.cgi failed, reason: No such file or
directory (errno = 2)
[Tue Jun 1 23:39:48 1999] access to /home/httpd/cgi-bin/one.cgi failed for
127.0.0.1, reason: Premature end of script headers
Illegal character \015 (carriage return) at /home/httpd/cgi-bin/nph-one.cgi
line 2.
(Maybe you didn't strip carriage returns after a network transfer?)
7) nie wiem co to może być, czy perl nie interpretuje cgi ?
Dziekuje z góry za pomoc
Z poważaniem Sebastian Sprzączkowski