Hi guys, I’m running LAMP on Ubuntu 14.04 and I have multiple sites running on a single droplet. I need to change the upload limit for a single site, but for the others to remain the same. I have tried .htaccess, adding a php.ini file in the virtual host root, but nothing seems to work. (http://www.elegantthemes.com/blog/tips-tricks/is-the-wordpress-upload-limit-giving-you-trouble-heres-how-to-change-it) And yes, I have restarted apache2 each time.
If I change the configuration in /etc/php5/apache2/php.ini then that will change every wordpress on every website, and I don’t want that.
Appreciate your help!!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This question was answered by @sierracircle:
Perhaps try the opposite approach: change the global limit in your PHP to a higher amount (maybe 250), reload apache, and then lower that amount for the other sites using this in your .htaccess for each site (I have it at 64M, but change it accordingly for each site):
php_value upload_max_filesize 64M php_value post_max_size 64M php_value max_execution_time 300 php_value max_input_time 300
I have created a plugin that very easily changes the max upload size in any PHP configuration - by using chunked upload. It splits the file into smaller chunks, and that allows you to upload any filesize.
https://wordpress.org/plugins/wp-awesome/
Please check it out and give me any feedback or bug reports and I’ll promptly fix them.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.