The problem background
When a new project is deployed to a new server, colleagues can run on Windows without any problems, but when migrating to a Liinux server, they find the following error.
chrome prompt: ERR_CONTENT_DECODING_FAILED
as follows:
Screening method
Check whether the nginx.conf of Nginx opens gzip; if it opens gzip, close it and reload to check whether the zlib.output_compression
is open; if it is not opened, use zlib.output_compression = On
The solution
In the php.ini configuration file, the following configuration is found to be off. Open it and restart PHP-FPM
; http://php.net/zlib.output-compression
zlib.output_compression = On
Reference links:
https://stackoverflow.com/questions/14039804/error-330-neterr-content-decoding-failed
Read More:
- After upgrading php7, PHP program prompts an error: operator not supported for strings in causes and Solutions
- The problem of failed to create process occurs in pyinstaller package program of Python
- Three solutions to the appearance of notice: undefined index in PHP
- A method of collecting JS dynamic content by PHP
- Chrome console reports Failed to load resource: net::ERR_BLOCKED_BY_CLIENT one of the solutions
- Attributeerror occurs when Linux uses pool:__ exit__ Solutions
- PHP link database error PHP_ network_ getaddresses: getaddrinfo failed: Name or service not known
- OpenGL Usage Summary (including problems encountered and solutions)
- Summary of solutions to open flash back problem after Python packaging
- Coding and decoding Base64 in Python
- Build LNMPR Error — php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
- PHP message: PHP Fatal error: Uncaught PDOException: SQLSTATE[08004] [1040] Too many connections
- Python program uses OS. System () method to call exe program, resulting in no response of main program process
- php open(/var/lib/php/session/sess_4ofxxx, O_RDWR) failed: Permission denied (13)
- Solutions to error c2143: syntax error: missing ‘;’ before ‘type’ in C + + program compilation
- Three solutions to flash back of program running result box under vs
- Summary of problems encountered in compiling opengl code
- 0028opengl program running prompt glut32.dll missing one of the solutions
- gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildPr
- [Python] error syntax error: summary of solutions to invalid syntax