kajman
28.08.2010, 21:06:18
Witam mam xamppa i jak odpalam kod:
<?php
?>
to mi wywala taki blad:
a baza jest ok wgralem do niej tabele itp.
uzywam xamppa jak uzywalem krasnala nie wywalalo mi takiego bledu ale na krasnalu mialem inny problem
prosze o odpowiedz co moze byc nie tak?/
500 Internal Server Error
Status: 500 Internal Server Error
X-Powered-By: PHP/5.2.13
Content-type: text/htm
kacper.chrapa
28.08.2010, 21:15:57
raczej problem lezy w konfig. apache'a (a moze masz jakis htaccess w katalalogu i on cos krzaczy?).
poszukaj gdzie apache xampa trzyma pliki logow
(pewnie cos w rodzaju : xamp/apache/logs/error.log) - powinna byc dobra podpowiedz w najnowszych wpisach.
dziwne, gdyby to byla kwestia skryptu - ale na wszelki wypadek, zrob
<?php
echo 'hello';
?>
i sprawdz czy dziala.
pozdrowka,
kacper
kajman
28.08.2010, 21:24:45
dziala wyswietlenie hello
Kod
<?php
echo 'hello';
?>
tak wyglada moj plik error.log:
co jest przyczyna wtakim razie?
Kod
[Sat Aug 28 20:51:12 2010] [notice] Digest: generating secret for digest authentication ...
[Sat Aug 28 20:51:12 2010] [notice] Digest: done
[Sat Aug 28 20:51:14 2010] [notice] Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i PHP/5.2.9 configured -- resuming normal operations
[Sat Aug 28 20:51:14 2010] [notice] Server built: Dec 10 2008 00:10:06
[Sat Aug 28 20:51:14 2010] [notice] Parent: Created child process 984
[Sat Aug 28 20:51:15 2010] [notice] Digest: generating secret for digest authentication ...
[Sat Aug 28 20:51:15 2010] [notice] Digest: done
[Sat Aug 28 20:51:16 2010] [notice] Child 984: Child process is running
[Sat Aug 28 20:51:16 2010] [notice] Child 984: Acquired the start mutex.
[Sat Aug 28 20:51:16 2010] [notice] Child 984: Starting 250 worker threads.
[Sat Aug 28 20:51:16 2010] [notice] Child 984: Starting thread to listen on port 443.
[Sat Aug 28 20:51:16 2010] [notice] Child 984: Starting thread to listen on port 80.
datablock position = 2048
[Sat Aug 28 21:12:07 2010] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Sat Aug 28 21:12:07 2010] [notice] Child 984: Exit event signaled. Child process is ending.
[Sat Aug 28 21:12:08 2010] [notice] Child 984: Released the start mutex
[Sat Aug 28 21:12:09 2010] [notice] Child 984: All worker threads have exited.
[Sat Aug 28 21:12:09 2010] [notice] Child 984: Child process is exiting
[Sat Aug 28 21:12:09 2010] [notice] Parent: Child process exited successfully.
[Sat Aug 28 22:02:00 2010] [notice] Digest: generating secret for digest authentication ...
[Sat Aug 28 22:02:00 2010] [notice] Digest: done
[Sat Aug 28 22:02:01 2010] [notice] Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i PHP/5.2.9 configured -- resuming normal operations
[Sat Aug 28 22:02:01 2010] [notice] Server built: Dec 10 2008 00:10:06
[Sat Aug 28 22:02:01 2010] [notice] Parent: Created child process 2256
[Sat Aug 28 22:02:02 2010] [notice] Digest: generating secret for digest authentication ...
[Sat Aug 28 22:02:02 2010] [notice] Digest: done
[Sat Aug 28 22:02:03 2010] [notice] Child 2256: Child process is running
[Sat Aug 28 22:02:03 2010] [notice] Child 2256: Acquired the start mutex.
[Sat Aug 28 22:02:03 2010] [notice] Child 2256: Starting 250 worker threads.
[Sat Aug 28 22:02:03 2010] [notice] Child 2256: Starting thread to listen on port 443.
[Sat Aug 28 22:02:03 2010] [notice] Child 2256: Starting thread to listen on port 80.
datablock position = 2048
kacper.chrapa
28.08.2010, 21:47:26
hmm, ciekawe...
szukajmy dalej ;-) :
1. popatrzmy w access.log - moze jakas podpowiedz sie zapałęta
2. ustaw logi do pliku w php.ini + poziom najlepiej na E_ALL.zobaczmy co bedzie.
a jak ci sie spieszy i nie chcesz sie bawic - wykop tego xampa ;-) i wrzuc sobie niezaleznie:
1. apache
2. PHP
3. mysql
pod winda instalacja jest banalna i prowadzi za reke.
pzdr,
kacper
gigzorr
28.08.2010, 21:49:27
sciagnij vertrigo , zainstaluj odpal i bedzie dzialalo , zawsze najświeższe paczki mają , albo xampa , ew vertrigo.
pozdrawiam.
thek
28.08.2010, 23:58:36
Jeśli masz działający htaccess, to zrób logowanie tego co on robi. Bo 500 to baaaaardzo często efekt błędu w htaccess. W zasadzie 99% tego typu errorów z mojego doświadczenia to skopany htaccess.
kajman
29.08.2010, 12:20:05
sciaglem vertrigo zainstalowalem i ten sam blad mam;/
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę
kliknij tutaj.