-
-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't uplaod images to Wordpress #30
Comments
For me, the problem occurs at windows and is generally known. This is also the same problem that plugins, themes and wordpress cannot be updated or reinstalled, at least for me. There are many solutions that can be found in many issues, but finding the right solution was quite hard. Adding # ...
wordpress:
user: root
# ... Also, in the Docker settings, your drive must be shared as a shared drive. If it's already enabled, it's worth using |
I'm not sure how this was to work before, as the state of the uploads directory appears to not be persisted outside of the container. After adding the uploads dir to the volumes list, this resolved the problem for me: - "./.data/uploads:/var/www/html/wp-content/uploads" |
Uploading images on a docker container for a web project is potentially a total dumpster fire. There will be more Congratulations! Your ass doesn't have an uploads folder in the project itself. This has to
Sick, now we're cooking with gas. Haha yeah right, bro you have no idea how many character building
Let's kill this thing shall we? Onward! So to tackle this shart we are going to need to get inside the container itself via terminal.
Ok we're in.... now what amiright?! Alright calm down. Now that we're in, we have to
Sick, now you have nano and we are ready to do some damage. Ok, let's find the wp-config.php
Now, scroll that bad boy all the way to the bottom until you see this line:
Right above that ish you need to add this:
Ok, CTL-O, Enter, and then CTL-X. Presto! Fuckin done right? Nope, one more error lies ahead.
Yup, hopefully you haven't jumped out of your second story window yet. Hope is just around Ok so, we need to be inside that lovely container, and at this point you probably still have PS. www-data is the user that web servers on Ubuntu use by default
And bam! You did it homeboy. At ease soldier. Enjoy those crisp uploads |
Hello,

I actually can't upload any images to Wordpress due a permissione limitation.
could you please help me?
thaks
The text was updated successfully, but these errors were encountered: