{"id":61861,"date":"2021-10-28T13:30:03","date_gmt":"2021-10-28T18:30:03","guid":{"rendered":"https:\/\/blog.cpanel.com\/?p=61861"},"modified":"2021-10-28T13:30:03","modified_gmt":"2021-10-28T18:30:03","slug":"how-to-increase-the-php-max-upload-size-in-cpanel","status":"publish","type":"post","link":"https:\/\/devel.www.cpanel.net\/blog\/tips-and-tricks\/how-to-increase-the-php-max-upload-size-in-cpanel\/","title":{"rendered":"How To Increase the PHP Max Upload Size in cPanel\u00ae?"},"content":{"rendered":"\n

PHP protects server performance by limiting file upload sizes, but the default limit is too low for many modern web applications. You\u2019re likely to encounter this issue when a PHP application displays an error message asking you to increase the PHP max upload file size. There are various ways to increase the upload limit, including editing PHP configuration files directly. In this article, we\u2019ll show you how to adjust PHP upload limits in cPanel & WHM quickly.<\/p>\n\n\n\n

What Is \u201cupload_max_filesize\u201d in PHP?<\/strong><\/h2>\n\n\n\n

The upload_max_filesize directive is a PHP variable set in the system and local php.ini files and user.ini files. These determine the PHP interpreter\u2019s baseline configuration. As you might expect, upload_max_filesize limits the maximum allowable size of an uploaded file. The PHP default is 2 Megabytes, and you will have to increase it if you want to upload larger files via a PHP web application.<\/p>\n\n\n\n

You may also have to adjust other directives, including:<\/p>\n\n\n\n