I've installed PHP & MySQL (with PDO Driver) on my FreeBSD dedicated server, earlier I was using Debian and everything worked like a charm, but now, when I enter my website all I can see is a strange string on a white page:

Ě= AĐ~OńÚlś°źůÁ@6YbńřÎŢŰ^Źh

When I delete my whole index.php and replace it with:

<?php
     echo "Hello World";
?>

Then everything is fine.

I think its a problem with the php.ini file, as I've recently used this tutorial: http://www.howtoforge.com/firefox-content-encoding-error-google-chrome-error-330-net-err_content_decoding_failed-unknown-error

To fix the problem I had (Error 330 (net::ERR_CONTENT_DECODING_FAILED): Unknown error.).

Have you guys any ideas on what it may be?

link|improve this question

1  
Smells like an encoding problem. Definitely one related to your script (if it works fine with the simple "Hello World" script PHP is happy), and probably related to going from whatever PHP version you used previously to PHP 5. You might do better asking this on StackOverflow (and specifying your PHP version :) – voretaq7 Jan 13 at 23:05
@voretaq7 Well , its strangne but when I installed PHP, there wasn't any php.ini (or dist) file, there was ONLY a php.ini-produciton so I've just mv php.ini-production php.ini and restarted my Lighttpd... So I've added it manually... – Cyclone Jan 14 at 7:45
@voretaq7 Also, please note that there wasn't any php.ini file in the /usr/etc/local directory (except the commented ones) and PHP worked fine without it O_O. I've just added it, because I noticed that I don't have the php.ini file anywhere. – Cyclone Jan 14 at 7:47
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.