Aliyun Server linux Server, PHP environment, upload attachment issues, record sharing:
At the beginning of the test, are pictures, small accessories, no problem
System on-line, found that large attachment upload problem, error IO error
Start to check the program, the program all the limits of the size of the place are all canceled, and found that still not
There's no problem getting the local test, I know it's not a program, check the server environment
Modifying the PHP Environment: modifying php.ini
File_uploads =on
upload_tmp_dir=
upload_max_filesize=64m
post_max_size=64m
In view of the speed problem, adjust the following several parameters
max_execution_time=600
max_input_time=600
memory_limit=8m
After the reboot of the server, found that the IO error problem did not, reported a new error HTTP Error 413
Checked for HTTP error 413 (the server refused to process the request because the size of the request exceeded the size the server was able to handle)
Originally is Nginx limits the file uploads the size ... Nginx client_max_body_size This parameter, will interrupt the request in Nginx, in PHP is unable to record to access, the default is 1m
Add a sentence to the nginx.conf, client_max_body_size 30m;
Reboot, Problem solving