Skip to content

Instantly share code, notes, and snippets.

@krstffr
Last active November 11, 2017 03:41
Show Gist options
  • Save krstffr/52e8504d02493ea9c2c75e50ea6bcdfb to your computer and use it in GitHub Desktop.
Save krstffr/52e8504d02493ea9c2c75e50ea6bcdfb to your computer and use it in GitHub Desktop.
Updating the file max upload size for the Rancher Wordpress Docker image
# So, what we want to accomplish is this: add a uploads.ini file to the conf.d path (right now it's here: /usr/local/etc/php/conf.d)
# Go to the folder
cd /usr/local/etc/php/conf.d
# Create the file
touch upload.ini
# Add the required config stuff into the file
echo "file_uploads = On
memory_limit = 64M
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 600" > uploads.ini
# Test to see the stuff is actually in the file (should return the contents above!)
cat uploads.ini
# Now maybe you need to restart the container, not sure about that though…
@patmccormick
Copy link

doesn't work. I have seen this same garbage posted all over the place, apparently by people who have the time to copy/paste because they don't actually test their suggestions first. THIS DOES NOT WORK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment