How to Increase PHP Upload Limits on Sparkforge WordPress Hosting

By Sparkforge Support Team ·Last reviewed May 3, 2026

Edit .htaccess via a WP File Manager plugin to raise PHP upload limits on Sparkforge WordPress hosting. The .htaccess ceiling is 300MB; anything higher needs server-level changes.

If your Sparkforge-hosted WordPress site is rejecting large files or theme uploads, raise the PHP limits by editing .htaccess from the WordPress dashboard.

Limit: The maximum upload value .htaccess can set is 300MB. Higher values may show in the media library but uploads will fail.

Recommended values

  • PHP max input variables: 10000 or higher
  • PHP post max size: 300M or higher
  • PHP memory limit: 2GB or higher
  • PHP time limit: 600 or higher

Steps

1. Install a file manager plugin

  1. Log in to the WordPress dashboard.
  2. Go to Plugins > Add New.
  3. Search for WP File Manager (or any file manager plugin).
  4. Click Install, then Activate.

2. Open .htaccess

  1. In the dashboard sidebar, open WP File Manager.
  2. Open public_html (or wherever WordPress lives).
  3. Find .htaccess. If hidden, enable Show Hidden Files in the plugin.

3. Edit the file

  1. Right-click .htaccess and choose Code Editor or Edit.
  2. Add at the bottom:
    php_value upload_max_filesize 128M
    php_value post_max_size 128M
  3. Click Save.

Verify the change

  1. Go to Media > Add New.
  2. Check the upload size shown at the bottom of the upload area.
  3. If it matches your new limit, you're good.

Troubleshooting

  • Old limits still showing: Clear browser and site cache.
  • Uploads still fail: Confirm your value is at or under 300MB.
  • Need higher than 300MB: Contact Sparkforge support — server-level changes are required.

Frequently Asked Questions

What is the maximum upload size I can set via .htaccess?
300MB. Higher values may appear in the WordPress media library but the actual upload will fail. Anything above 300MB requires server-level configuration through Sparkforge support.
Why are my old upload limits still showing after I edited .htaccess?
Browser or site cache. Clear both and reload the Media > Add New page. The new limit should appear at the bottom of the upload area.
Do I need a specific file manager plugin?
No. WP File Manager is one option, but any plugin that lets you edit .htaccess from the dashboard works. You just need to be able to see hidden files and edit code.
What values should I use?
For most sites: post_max_size 300M, upload_max_filesize 128M, memory_limit 2GB, max input vars 10000, time limit 600 seconds. Adjust based on what you're actually uploading.

Was this article helpful?