richdynamix / magestead

The Vagrant Solution for Magento Developers
81 stars 29 forks source link

php.ini upload_max_filesize only 2Mb - scripted update #23

Closed cannycookie closed 8 years ago

cannycookie commented 8 years ago

Also useful if you want to script the updating of php.ini

upload_max_filesize="=64M"
post_max_size="=64M"

for key in upload_max_filesize post_max_size
do
 sed -i "s/^\($key\).*/\1 $(eval echo \${$key})/" /etc/php.ini
done
richdynamix commented 8 years ago

Very useful indeed. I think it would be good to add this as part of the provisioning. Allowing the users to set values like this in the YAML file would be a great advantage. Noting as enhancement. :+1:

cannycookie commented 8 years ago

Ooh and another config update for the nginx server conf. Unable to upload files without this:-

client_max_body_size 64M;
richdynamix commented 8 years ago

Fixed in https://github.com/richdynamix/magestead/releases/tag/1.5