Skip to content

Adjust php's max_file_uploads size in provision - #76

Merged
EvanK merged 2 commits into
masterfrom
76-php-uploadmaxfilesize
Jul 29, 2015
Merged

Adjust php's max_file_uploads size in provision#76
EvanK merged 2 commits into
masterfrom
76-php-uploadmaxfilesize

Conversation

@EvanK

@EvanK EvanK commented Jul 29, 2015

Copy link
Copy Markdown
Contributor

Since I find myself adjusting this with every install, request to could add it to the provision script.
Does this make sense to adjust php's max_file_upload here?
Or perhaps there a better place to adjust it, would it be better in wp-config as an ini-set? For me, the ini is fine since 16M is small these days...

Something like this in lib/ansible/roles/php/tasks/main.yml

- name:           Update php.ini's max_file_upload
  lineinfile:     dest=/etc/php5/apache2/php.ini backup=yes regexp='upload_max_filesize' line='upload_max_filesize  = 16M'
  sudo:           yes

@EvanK

EvanK commented Jul 29, 2015

Copy link
Copy Markdown
Contributor

Yeah, 16M seems reasonable

EvanK added a commit that referenced this pull request Jul 29, 2015
Set higher `upload_max_filesize` for php ini
@EvanK
EvanK merged commit 409cf84 into master Jul 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant