A 5 MB file cannot be uploaded via cPanel’s File Manager even though there is a custom php.ini in place with upload_max_filesize and post_max_size set to 10 MB.
To alter the maximum file size for files uploaded via cPanel’s File Manager, you must use the following Tweak Setting in WHM:
WHM >> Tweak Settings >> System
The maximum file size in MB allowed for upload through cPanel File manager. Use “unlimited” for unlimited
Note: upload_max_filesize and post_max_size in php.ini are different.