Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Problem z uruchamianiem skryptów, Wyrzuca błąd serwera
chevron
post 16.09.2005, 15:47:24
Post #1





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 16.09.2005

Ostrzeżenie: (0%)
-----


Każdy skrypt, jaki próbuję uruchomić wyrzuca błąd:

Internal Server Error

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

--------------------------------------------------------------------------------

Apache/1.3.27 Server at www.xxx.xxx Port 80


Z kolei w logu mam takie coś:

[Fri Sep 16 10:16:28 2005] [error] [client xx.xxx.xxx.xxx] Premature end of script headers: /home/cust1/usr1230/html/test.php

Co ciekawsze, jest jeden skrypt, który działa, mianowicie:

  1. #!/usr/local/bin/php
  2.  
  3. <?php
  4.  phpinfo();
  5. ?>


Tu jest wszystko ok. Macie jakiś pomysł?
Go to the top of the page
+Quote Post
hwao
post 16.09.2005, 16:01:59
Post #2


Developer


Grupa: Moderatorzy
Postów: 2 844
Pomógł: 20
Dołączył: 25.11.2003
Skąd: Olkusz




mialem, cos takiego i to byla wina admina.

  1. <?php phpinfo(); ?>

Sproboj takie cos, jak nie to musz gadac z adminem.
Go to the top of the page
+Quote Post
chevron
post 16.09.2005, 16:22:09
Post #3





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 16.09.2005

Ostrzeżenie: (0%)
-----


phpinfo działa. Ale nic poza tym. Hmm, tak sie zastanawiam, czy ten błąd nie jest przypadkiem związany z brakiem nagłówków HTTP? (w ogóle muszą być w przypadku php?bo wiem, że np. w Perlu tak)

Hehe, już wiem. Chodziło o windowsowe znaki końca linii, ale bez sensu :-) Wystarzczyło wczytać do pico i nagrać, i ok.

Ten post edytował chevron 16.09.2005, 17:08:48
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 18.08.2025 - 18:05