Error: Firefox - Content Encoding Error / Google Chrome - Error 330 (net::ERR_CONTENT_DECODING_FAILED): Unknown error.
When you open a PHP page in your Firefox, you get the following error:
Content Encoding Error
The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
* Please contact the website owners to inform them of this problem.
In Google Chrome, you get the following error:
Error 330 (net::ERR_CONTENT_DECODING_FAILED): Unknown error.
Solution
The solution is to turn on zlib.output_compression in your php.ini.
Open your php.ini. On Debian/Ubuntu, it's /etc/php5/apache2/php.ini:
vi /etc/php5/apache2/php.ini
On Fedora/CentOS/RedHat, it's /etc/php.ini:
vi /etc/php.ini
Find the zlib.output_compression line and turn zlib.output_compression on:
zlib.output_compression = On
Restart Apache afterwards:
On Debian/Ubuntu, you run:
/etc/init.d/apache2 restart
On Fedora/CentOS/RedHat, you run:
/etc/init.d/httpd restart
Firefox - Content Encoding Error / Google Chrome - Error 330 (net::ERR_CONTENT_DECODING_FAILED): Unknown error.