Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Autoryzacja HTTP + Apache, Error 500 Internal Server Error
piwko28
post 10.06.2005, 15:26:55
Post #1





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 10.06.2005

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


Mam Windows 98, Apache 1.3, php 4.3. Przy probie autoryzacji HTTP wyswietla sie taki komunikat:

Kod
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@localhost 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.


W jaki sposob skonfigurowac php, by autoryzacja dzialala? (biarac pod uwage fakt, ze jestem pewny, iz powinna)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 4)
Fo
post 10.06.2005, 17:53:52
Post #2





Grupa: Zarejestrowani
Postów: 401
Pomógł: 0
Dołączył: 18.04.2003
Skąd: Trójmiasto

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


czy ty mówisz o https ? mam na myśli apache + SSL

o jakiej konkretnie mówisz autoryzacji bo typów to chyba może być ile sobie kto wymyśli a raczej napisze winksmiley.jpg

pzdr.

edit : pozatym, rzuć jakimś fragmentem konfiguracji, albo powiedz co dokładnie robisz, bo raczej z fusów cięzko się wróży winksmiley.jpg

Ten post edytował Fo 10.06.2005, 18:06:31
Go to the top of the page
+Quote Post
piwko28
post 10.06.2005, 21:34:40
Post #3





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 10.06.2005

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


Chodzi ogolnie o autoryzacje http (nie https, zreszta napisalem), przez naglowki. Np. :

  1. <?
  2. if (!isset($_SERVER['PHP_AUTH_USER'])) :
  3.  header('WWW-Authenticate: Basic realm=\"My Realm\"');
  4.  header('HTTP/1.0 401 Unauthorized');
  5.  echo 'Błąd 401: Wymagana autoryzacja.';
  6.  exit;
  7. endif;
  8. ?>


Fragment konfiguracji? Oto dwa pliki konfiguracyjne:
php.ini
httpd.conf

Jezeli to w czyms pomoze, jest to (niestety) phptriad. Instalator nawet Apache 1.3 nie dziala na tym windowsie.
Go to the top of the page
+Quote Post
Fo
post 10.06.2005, 23:29:10
Post #4





Grupa: Zarejestrowani
Postów: 401
Pomógł: 0
Dołączył: 18.04.2003
Skąd: Trójmiasto

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


no to masz internala ( błąd wewnętrzny ) tongue.gif

zarzuć wać Pan jakieś logi - ten komunikat mówi że mogą być przydatne winksmiley.jpg

ps. nie widze w Twoim httpd.conf linijki BindAdress 127.0.0.1

zajrzyj do posta przyklejonego w którym opisałem całą instalacje serwera na windows ( za jakiś czas napiszę nowy artykuł dla windziarzy winksmiley.jpg )

no chyba że przy tej konfiguracji którą masz Twój serwer http chodzi poprawnie...

nie pamiętam czy to jest dobrze, nie mam httpd + php u siebie na windzie, zobacz co się stanie jak linijke :
ScriptAlias /php/ "c:/apache/php/"

przeniesiesz poza sekcje Ifmodule mod_alias.c winksmiley.jpg

logi Twiom przyjacielem winksmiley.jpg

pzdr
Go to the top of the page
+Quote Post
piwko28
post 11.06.2005, 18:36:54
Post #5





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 10.06.2005

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


Serwer dziala poprawnie. Tylko nie chce wykonac autoryzacji. Te same naglowki dzialaly na innym serwerze poprawnie. Oto fragment logu, gdzie wystepowal owy blad:

Kod
malformed header from script. Bad header=HTTP/1.0 401 Unauthorized: c:/apache/php/php.exe


A, jeszcze cos znalazlem.

Kod
[Fri Jun 10 16:00:37 2005] [error] Cannot remove module mod_unique_id.c: not found in module list
[Fri Jun 10 16:00:37 2005] [error] Cannot remove module mod_usertrack.c: not found in module list
[Fri Jun 10 16:00:37 2005] [error] Cannot remove module mod_headers.c: not found in module list
[Fri Jun 10 16:00:37 2005] [error] Cannot remove module mod_expires.c: not found in module list
[Fri Jun 10 16:00:37 2005] [error] Cannot remove module mod_cern_meta.c: not found in module list
[Fri Jun 10 16:00:37 2005] [error] Cannot remove module mod_proxy.c: not found in module list
[Fri Jun 10 16:00:37 2005] [error] Cannot remove module mod_digest.c: not found in module list
[Fri Jun 10 16:00:37 2005] [error] Cannot remove module mod_auth_digest.c: not found in module list
[Fri Jun 10 16:00:37 2005] [error] Cannot remove module mod_auth_dbm.c: not found in module list
[Fri Jun 10 16:00:37 2005] [error] Cannot remove module mod_auth_anon.c: not found in module list
[Fri Jun 10 16:00:37 2005] [error] Cannot remove module mod_rewrite.c: not found in module list
[Fri Jun 10 16:00:37 2005] [error] Cannot remove module mod_speling.c: not found in module list
[Fri Jun 10 16:00:37 2005] [error] Cannot remove module mod_info.c: not found in module list
[Fri Jun 10 16:00:37 2005] [error] Cannot remove module mod_status.c: not found in module list
[Fri Jun 10 16:00:37 2005] [error] Cannot remove module mod_mime_magic.c: not found in module list
[Fri Jun 10 16:00:37 2005] [error] Cannot remove module mod_vhost_alias.c: not found in module list


Ten post edytował piwko28 11.06.2005, 18:45:06
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: 31.07.2025 - 10:26