Skip to content
PKHosting
Files & databases

Increase the file upload or memory limit

Raise upload_max_filesize, post_max_size and memory_limit for large uploads.

Seeing "file exceeds the maximum upload size" when importing a large theme, plugin or database? Raise the PHP limits:

Create or edit a .htaccess file (or a php.ini/.user.ini) in your public_html via Files and add:

  • php_value upload_max_filesize 128M
  • php_value post_max_size 128M
  • php_value memory_limit 256M
  • php_value max_execution_time 300

Adjust the numbers to what you need. If your plan's PHP handler ignores .htaccess values, use a .user.ini with the same keys (without php_value), or open a ticket and we'll set it at the server level. Very large media is better uploaded by FTP than through a web form.

Still need a hand?

Open a ticket from your dashboard with your domain and a screenshot — our team replies fast.