Skip to content

wp-uploads and changing file permissions #162

Closed
@thedamon

Description

@thedamon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions