Bitrix: fail to upload files larger than 4MB
Symptoms
During Bitrix self-testing, a test upload of files larger than 4 MB fails with the following error:
Uploading a file larger than 4MB (check_upload_big): FailSolution
Check the following parameters, their values must be set to more than 4 MB:
memory_limit,post_max_size, andupload_max_filesizein the target site's PHP settings;client_max_body_sizein the Nginx configuration file at/etc/nginx/nginx.conf;FcgidMaxRequestLenin the Apache configuration file at/etc/apache2/apache2.conf(/etc/httpd/httpd.conffor RHEL-based systems).