Updated: 28 September 2026 · Applies to: PHP 8.1 to 8.4
PHP's upload limit is set by upload_max_filesize and post_max_size. On a server you manage, change them in PHP's configuration file.
Steps (root)
- Find the configuration file:
php --ini(for the web server, check aphpinfo()page). - Set, for example:
upload_max_filesize = 100M post_max_size = 110M
- Restart PHP-FPM or the web server.
On cPanel hosting, use Software › MultiPHP INI Editor instead (see "How to increase the size of uploaded files in PHP").