Description
I am having an issue getting uploads to upload in my wp/docker environment.
I am getting the error The uploaded file could not be moved to wp-content/uploads.
which I know is 'basic' file permissions stuff, but I haven't been able to resolve it. I know the web process needs to own the uploads folder and I'm wondering if it has to do with the fact that the server is running by apache.
So when I try echo(exec("whoami"));die();
in my php file I get www-data
, but that user isn't on my system: when I go to the dir in my filesystem, the files are owned by me. This same setup is working on other Docker projects though.
Is the file ownership within apache (/var/www/html
) different? how do I look at / alter those? When I open Docker CLI I don't see any difference