Last active
November 11, 2017 03:41
-
-
Save krstffr/52e8504d02493ea9c2c75e50ea6bcdfb to your computer and use it in GitHub Desktop.
Updating the file max upload size for the Rancher Wordpress Docker image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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… |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.