Economicalhost · Knowledge Base
Knowledge Base › PHP & Performance › How to Increase PHP upload_max_filesize
PHP & Performance

How to Increase PHP upload_max_filesize

"The uploaded file exceeds the upload_max_filesize" stops large media and backups. Two directives must be raised together for uploads to work.

Step-by-step

  1. Open Software → MultiPHP INI Editor and select your domain.
  2. Set upload_max_filesize to the size you need, e.g. 64M or 128M.
  3. Set post_max_size to the same value or higher. Uploads fail silently if post_max_size is smaller than upload_max_filesize.
  4. Raise max_execution_time to 120–300 so big uploads have time to finish on slower connections.
  5. Click Apply.
  6. Retry your upload. In WordPress, Media → Add New now shows the higher limit.

💡 Good to know

  • Both upload_max_filesize and post_max_size must be raised — this is the most common mistake.
  • Very large files (videos) are often better hosted on a dedicated video service and embedded.
  • See the INI editor guide for other PHP directives.