Is there any way to change php's upload_max_filesize setting from settings.php in Drupal 7? This used to work for me in Druapl 6 but no longer seems to. I don't like the idea of doing it in .htaccess, because that's a core file that will get overwritten on an upgrade.

1 Answer 1


Personally I would change it in the /etc/php.ini file as it won't be overwritten. You will need to restart apache to see the changes

  • Thanks, was looking for a way to do it on a per-site basis - on my host I keep the limit to 8mb sitewide but up it for certain sites based on circumstance. Using .htaccess for now. May 29, 2012 at 20:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.