Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Blad na stronie. Zwiazany z cgi.

0 views
Skip to first unread message

NEWS

unread,
Oct 27, 1999, 3:00:00 AM10/27/99
to
Po zainstalowaniu skryptu pojawia sie blad i tekst

Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.
Please contact the server administrator, webm...@xxxxxxx.xxx 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.


a w error_log pojawia sie

[Wed Oct 27 00:01:02 1999] [error] [client 212.160.36.86] Premature end of
script headers: /public_html/cgi-local/site_Search.cgi

Co to moze oznaczac.

Marcin Jagodzinski

unread,
Oct 27, 1999, 3:00:00 AM10/27/99
to

Że skrypt zakończył działanie przed wysłaniem nagłówka http.


Marcin Jagodziński
Portfolio: http://portfolio.art.pl/ [update: 08.08.1999]
"XML is basically the subset of SGML
that Microsoft's developers could understand." Dan Lyke

news.icm.pl

unread,
Oct 27, 1999, 3:00:00 AM10/27/99
to

NEWS napisał(a) w wiadomości: ...

>Po zainstalowaniu skryptu pojawia sie blad i tekst
>
>Internal Server Error
>The server encountered an internal error or misconfiguration and was unable
>to complete your request.
>Please contact the server administrator, webm...@xxxxxxx.xxx 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.
>
>
>a w error_log pojawia sie
>
>[Wed Oct 27 00:01:02 1999] [error] [client 212.160.36.86] Premature end of
>script headers: /public_html/cgi-local/site_Search.cgi
>
>Co to moze oznaczac.
>
>

To moze wiele oznaczac. Sprobuj doinstalowac sobie modul CGI::Debug (jest na
CPAN'ie) i dopisac linijke:
use CGI::Debug(report =>'everything', on=>'errors');
Skrypt zostanie zdebagowany i zobaczysz co jest w nim nie tak.
Sprawdz rowniez czy do ewentualnych uzywanych przez skrypt programow
przekazywane sa odpowiednie parametry. Mnie np taki blad pojawil sie gdy do
programu sendmail wyslalem pusta linijke "CC: <$e-mail>"; a zmienna $e-mail
byla pusta.
A jezeli to nie pomoze, to bedziemy dalej kombinowac.

pozdrawiam
m@j

Klara Morawska

unread,
Oct 27, 1999, 3:00:00 AM10/27/99
to

>[Wed Oct 27 00:01:02 1999] [error] [client 212.160.36.86] Premature end of
>script headers: /public_html/cgi-local/site_Search.cgi


wszystko ;))

KLara

Piotr Piatkowski

unread,
Oct 27, 1999, 3:00:00 AM10/27/99
to
In pl.comp.lang.perl NEWS <ada...@gmx.net> wrote:

> a w error_log pojawia sie

> [Wed Oct 27 00:01:02 1999] [error] [client 212.160.36.86] Premature end of
> script headers: /public_html/cgi-local/site_Search.cgi

Popatrz na to co jest powyżej tej linijki (w error_log)

--
Piotr Piątkowski, Kraków
perl -le 's**02).4&9%4^[./4(%2^0%2,^([#+%2&**y%& -;^[%"`-{ a%%s%%$_%ee'

Dariusz Bywalec

unread,
Oct 27, 1999, 3:00:00 AM10/27/99
to

NEWS napisał(a) w wiadomości: ...
>Po zainstalowaniu skryptu pojawia sie blad i tekst
>
>Internal Server Error
>The server encountered an internal error or misconfiguration and was unable
>to complete your request.
>Please contact the server administrator, webm...@xxxxxxx.xxx 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.
>
>
>a w error_log pojawia sie
>
>[Wed Oct 27 00:01:02 1999] [error] [client 212.160.36.86] Premature end of
>script headers: /public_html/cgi-local/site_Search.cgi
>
>Co to moze oznaczac.


Zobacz również na zakończenie linii w twoim skrypcie. Powinien być znak
"\n",
a nie para "\r\n" (jak pod Windą). Jest to częsty problem przy przenoszeniu
skryptów w PERL z Windowsa, na platformę Unixową.

Pozdrowienia,
Dariusz Bywalec


Tomasz Rozdzynski

unread,
Oct 27, 1999, 3:00:00 AM10/27/99
to
Witam.

Prawdopodobne przyczyny:
1) Program sie wywala zanim cos wysle na stdout.
2) Program wysyla nieprawidlowy naglowek.
3) Prawa dostepu do programu (lub do katalogu w ktorym sie znajduje)
sa nieprawidlowe (np katalog rwxrwxrwx)
4) Zle skonfigurowany modul suexec (serwer Apache)...

NAjlepiej sprawdz program najpierw na sucho....

Tomasz "W0dzu" Rozdzynski , EAIiE AGH Cracow, Poland , Europe.
E-mail : roz...@student.uci.agh.edu.pl
WWW : http://student.uci.agh.edu.pl/~rozdzyn/homepage

0 new messages