How to increase Upload Max Filesize / PHP Values via .htaccess file?

Increasing the PHP limits through the .htaccess file


When running an application, script, plugins, or even uploading a file via PHP, sometimes you may face an error when one of them exceeds the limitations set by your webserver. In this article, you’ll learn how to fix the error by increasing the default limit of upload_max_filesize through your .htaccess file.

To do that, access the .htaccess file that’s located in your public_html folder.

Then, add the subsequent lines at the end of the file, changing the limits according to your required values, and click on Save.





NOTE:

Make sure that your plan supports the limits you’re trying to set.

That’s it! Now you know how to increase your upload_max_filesize value through .htaccess

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How can I change a database password on cPanel?

Changing MySQL database password via cPanel You can change your database’s password by...

How can I change my PHP version on cPanel?

Changing PHP version via cPanel Your Hosting Account's PHP version can be changed at any time,...

How can I create a new MySQL database in cPanel?

Creating a new MySQL database at Servers GATE using cPanel   You can easily create a new MySQL...

How can I locate my MySQL database details on cPanel?

Locating your MySQL database details via cPanel You can easily locate your MySQL databases...

How can I set up a redirect on cPanel?

Creating a redirect on cPanel Your hosting redirects can be easily managed with the assistance...