How to set the PHP maximum upload file size in an .htaccess file

Unable to upload large file to WordPress? No problem. You can increase the file size by adding rule in .htaccess

  • Login to cPanel
  • Go to File Manager from cPanel.



  • Now go to your document root and open .htaccess file by right click. Then click on the “Edit”

  • Now put the following code. And update as per your desired size.

    php_value upload_max_filesize 512M
    php_value post_max_size 512M
    php_value max_execution_time 300
    php_value max_input_time 300
  • Now save the .htaccess file. That’s it.
  • 0 Users Found This Useful
這篇文章有幫助嗎?

相關文章

How to recover a lost cPanel Password?

If you lost your cPanel password or the one provided in the welcome email does not work, you can...

How to change PHP version from cPanel?

D-WEBHOST is using Cloudlinux for Security and Stability. Cloudlinux has a great feature that...

How to enable or disable allow_url_fopen in cPanel

Sometimes, few application required allow_url_fopen need to be on. As allow_url_fopen is managed...

How to disable directory listing in cPanel?

The LiteSpeed web servers default behaviour allows users visiting your website to see the...

How to add new domain to existing hosting package ?

Login to cPanel. You can do that from the details in your email sent by d-Webhost or from...