Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem z Polaczeniem
kajman
post
Post #1





Grupa: Zarejestrowani
Postów: 7
Pomógł: 0
Dołączył: 28.08.2010

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


Witam mam xamppa i jak odpalam kod:


  1. <?php
  2.  
  3.  
  4. mysql_connect( 'localhost', 'root', '' ) or die( mysql_error() );
  5.  
  6. mysql_select_db('testowa') or die(mysql_error());
  7.  
  8.  
  9. ?>



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
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 6)
kacper.chrapa
post
Post #2





Grupa: Zarejestrowani
Postów: 6
Pomógł: 1
Dołączył: 28.08.2010

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


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
Go to the top of the page
+Quote Post
kajman
post
Post #3





Grupa: Zarejestrowani
Postów: 7
Pomógł: 0
Dołączył: 28.08.2010

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


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

Go to the top of the page
+Quote Post
kacper.chrapa
post
Post #4





Grupa: Zarejestrowani
Postów: 6
Pomógł: 1
Dołączył: 28.08.2010

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


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

Go to the top of the page
+Quote Post
gigzorr
post
Post #5





Grupa: Zarejestrowani
Postów: 652
Pomógł: 47
Dołączył: 6.02.2010
Skąd: Radom

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


sciagnij vertrigo , zainstaluj odpal i bedzie dzialalo , zawsze najświeższe paczki mają , albo xampa , ew vertrigo.

pozdrawiam.
Go to the top of the page
+Quote Post
thek
post
Post #6





Grupa: Moderatorzy
Postów: 4 362
Pomógł: 714
Dołączył: 12.02.2009
Skąd: Jak się położę tak leżę :D




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.
Go to the top of the page
+Quote Post
kajman
post
Post #7





Grupa: Zarejestrowani
Postów: 7
Pomógł: 0
Dołączył: 28.08.2010

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


sciaglem vertrigo zainstalowalem i ten sam blad mam;/
Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 22.08.2025 - 17:45