By default, PHP file upload size is set to maximum 2MB file on the server, but you can increase or decrease the maximum size of file upload using the PHP configuration file (php.ini), this file can be found in different locations on different Linux distributions.
# vim /etc/php.ini [On Cent/RHEL/Fedora]
To increaes file upload size in PHP, you need to modify the upload_max_filesize and post_max_size variable?s in your php.ini file.
upload_max_filesize = 10M post_max_size = 10M
In addition, you can also set the maximum number of files allowed to be uploaded simultaneously, in a single request, using the max_file_uploads.
max_file_uploads = 25
The variable post_max_size which is used to set the maximum size of POST data that PHP will accept. Setting a value of 0 disables the limit. If POST data reading is disabled via enable_post_data_reading, then it is ignored.
Após alerar as variáveis, restarte o Php Apache
# systemctl restart httpd
Fjo 2021.11.23