error_reporting = E_ALL
display_errors = On
html_errors=On
I jeśli zrobię jakiś błąd w skrypcie PHP to błąd się nie wyświetla.
Mam Apache2 i PHP5 na GNU/Linuksie Ubuntu.
Wygląda tak jakby serwer w ogóle nie wyświetlał zawartości kiedy wystąpi błąd 500
kiedy wywołuje polecenie:
Kod
echo -e "GET /skrypt.php HTTP/1.0 \nHost:localhost\n" | nc localhost 80
to dostaje same nagłówki:
Kod
HTTP/1.0 500 Internal Server Error
Date: Mon, 05 Jul 2010 19:28:08 GMT
Server: Apache/2.2.14 (Ubuntu)
X-Powered-By: PHP/5.3.2-1ubuntu4.2
Vary: Accept-Encoding
Content-Length: 0
Connection: close
Content-Type: text/html
Date: Mon, 05 Jul 2010 19:28:08 GMT
Server: Apache/2.2.14 (Ubuntu)
X-Powered-By: PHP/5.3.2-1ubuntu4.2
Vary: Accept-Encoding
Content-Length: 0
Connection: close
Content-Type: text/html
kod skryptu:
Kod
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<title>Test</title>
<body>
<?php
\x // błąd
?>
</body>
</html>
<html>
<head>
<meta charset="utf-8" />
<title>Test</title>
<body>
<?php
\x // błąd
?>
</body>
</html>