• Hi all,
    This is a slightly different problem that other people have been having with image uploading. I can upload images okay via the Media Library and the folders get created properly (with year/date separation), but the browser doesn’t have access to them. I just get missing image icons when viewing them in webpages, or a 403 “forbidden, access denied” if I try to access the direct URL of the image.

    I’ve spent a day digging into it and this is what I’ve found out already:

    1. The folders and image thumbnails are all created properly
    2. The usergroup (not the user) for the created folders and files uploaded via the Media Library is different from any other files, it’s set to “webusers”, not “users”
    3. The file permissions for these files are 640 and folders are 750
    4. If I do my own PHP uploader script, the usergroup for any files that I upload with that is set to “users”, and I can see the files from the browser (the file permission is set to 644)
    5. In either case, if I FTP to the site, any chmod command seems to be ignored, so I can’t change or manipulate the permissions.

    I’ve tried using these definitions in the wp-config.php file:

    • define(‘FS_CHMOD_FILE’,0755);
    • define(‘FS_CHMOD_DIR’,0755);

    But they didn’t do anything. The file permissions are the same when I delete and re-upload the files. (BTW, is just putting these into wp-config.php enough? I don’t have to reinstall the website do I?)

    So that’s where I am at the moment. I’m going to contact my service provider as well to see what they’ve got to say on the matter.

    Thanks for any help you can give,

    Andy

Viewing 5 replies - 1 through 5 (of 5 total)
  • Sounds like it is a permissions issue. Should be 644 to be world readable. Would check with your hosting company.

    Thread Starter fxnutuk

    (@fxnutuk)

    Thanks for your reply. I’ll get on to them tomorrow.

    BTW, I still don’t understand why the “define’ statements in wp-config have no effect. The documentation suggests that it would have overridden the permissions and sorted out the problem.

    Any ideas?

    Thanks

    A

    You might want to open a supprot ticket with your hosting company and ask. Some will reset permissions.

    Thread Starter fxnutuk

    (@fxnutuk)

    Yeah, I’m in the middle of having a dialog with them. I’ll keep this thread posted if I find a solution.

    Thanks for your help.

    Just want to let you know that the permissions are definitely the issue. I had the same thing happen when the hosting company changed their permissions on the server. Took me two days to fathom out. Once the permissions were changed all worked perfectly. However, I had to really fight to get the hosting company to admit that was the issue and help me.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Permissions and user ownership problems when uploading’ is closed to new replies.