If you have your own server and root access to php.ini, the short answer is that it’s in php.ini. See these two directives –
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M
; Must be greater than or equal to upload_max_filesize
post_max_size = 8M
If you are on a shared server, the solution usually involves raising the maximum allowed file size upload limit in php through the use of a custom php.ini file placed in your own web space.
The most efficient way of making that happen, is to consult the user FAQ’s and documentation provided by your hosting service for their preferred method of raising the upload limit for your environment (if they allow it).