Home >Backend Development >PHP Problem >What should I do if the file downloaded by php is incomplete?
Solution to incomplete php file download: 1. Find the fastcgi_temp file in nginx; 2. Modify the permissions by executing the "chmod -R 777" command.
The operating environment of this article: linux5.9.8 system, PHP7.1 version, DELL G3 computer
php file download is incomplete what to do?
Incomplete php download file?
Recently changed the server. After setting up, I found that the downloaded file was incomplete. It was always about 100k. It should not be a code problem.
I guessed it was the configuration file, but it still didn’t work after changing the configurations. Later I found out that it was a permission issue with the fastcgi_temp file in nginx. I solved the problem quickly first, it’s simple and crude chmod -R 777
After modifying the permissions, The download function is normal.
Note:
Linux chmod (full English spelling: change mode) command is a command that controls user permissions on files
Linux/Unix file calling permissions are divided into three Level: File owner (Owner), user group (Group), other users (Other Users).
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of What should I do if the file downloaded by php is incomplete?. For more information, please follow other related articles on the PHP Chinese website!