Jump to:

546 Posts in 2198 Topics by 237 members

Hosting Requirements

SilverStripe Forums » Hosting Requirements » SS requiring permissions 777 to upload

What you need to consider when choosing a hosting provider and plan.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1313 Views
  • Bambii7
    Avatar
    Community Member
    254 Posts

    SS requiring permissions 777 to upload Link to this post

    Hey all,
    getting some odd behavior when uploading in SS.

    error move_uploaded_file()

    works fine when setting permissions to 777

    wondering if any one else has experienced this and if they have suggestions on fixes. It's not my server set up so hard to give details, but I know other SS installs on the same server upload fine. So I don't think it's related to swfupload, htaccess looks standard, I can't see any other configuration details that may be causing this....

  • Bambii7
    Avatar
    Community Member
    254 Posts

    Re: SS requiring permissions 777 to upload Link to this post

    Nope looks like it was some noob using dataobject_manager and image_gallery. Upgrading everything, looking like its going to fix the upload issues

  • Bambii7
    Avatar
    Community Member
    254 Posts

    Re: SS requiring permissions 777 to upload Link to this post

    NOPE rebuilt the whole site, upgraded all the modules, works fine locally. Doesn't seem to want to work on mellonsbay.school.nz. Every time I upload a new file it gets to the database but the file reference returns as assets/new-image.... I'm lost

  • Bambii7
    Avatar
    Community Member
    254 Posts

    Re: SS requiring permissions 777 to upload Link to this post

    OK turning on degugging, returns

    Trying to get property of non-object
    return isset($img) ? $img->CroppedImage(50,50)->URL : $file->Icon();

    So some issue with dataobject manager
    (haven't need to do that for a while out of practice, should have done it to start with)

  • Bambii7
    Avatar
    Community Member
    254 Posts

    Re: SS requiring permissions 777 to upload Link to this post

    ..... WTF, I'm still no closer to solving this.
    Tamper data is telling me 302 error when I try and upload on this URL
    http://www.mellonsbay.school.nz/admin/EditForm/field/Gallery/item/12/DetailForm/field/Image/EditFileForm

  • Bambii7
    Avatar
    Community Member
    254 Posts

    Re: SS requiring permissions 777 to upload Link to this post

    OK I THINK (not sure) that who ever created this site to begin with might have been logged in as root.... I think the issue is in the file ownership of core files. Don't have shell access to amend this. So I'm going to try destroying the account and recreate it, then see how it goes.

    Man this issue has stumped me.

  • Nivanka
    Avatar
    Community Member
    395 Posts

    Re: SS requiring permissions 777 to upload Link to this post

    >>works fine when setting permissions to 777

    I think it will be wise to change the ownership of the assets folder, and its contents to apache user of your system.

  • Nivanka
    Avatar
    Community Member
    395 Posts

    Re: SS requiring permissions 777 to upload Link to this post

    also try reading your servers error logs

    if you are on linux

    try

    tail -f /path/to/your/error/log

    1313 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.