Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Permissions problem with Assets

Our old forums are still available as a read-only archive.

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

Page: 1 2
Go to End
Author Topic: 4167 Views
  • Macello
    Avatar
    Community Member
    37 Posts

    Permissions problem with Assets Link to this post

    Hello there, i got a problem with the
    permissions of the upload function in Silverstripe. for all files that have been uploaded by Silverstripe (with the CMS upload and form uploads in frontend, the files are always only read and execute for the owner (server) so i always need to make them manually write and read for others, otherwise not even out of the cms you can read them.
    How can i solve this problem? i can't say to the client he has to do this manually in the webftp.

    Greetz and thanks already, Silverstripers

  • Macello
    Avatar
    Community Member
    37 Posts

    Re: Permissions problem with Assets Link to this post

    any solutions on this?

  • Double-A-Ron
    Avatar
    Community Member
    599 Posts

    Re: Permissions problem with Assets Link to this post

    This doesn't sound right. Have you ever had similar issues when uploading a file on this server using a plain php script? (e.g. a server issue)

    Every installation of SS that I've tried makes the uploaded files 644 - read/write owner, read group, read everyone.

    Cheers
    Aaron

  • Macello
    Avatar
    Community Member
    37 Posts

    Re: Permissions problem with Assets Link to this post

    yes i had the same problem on another server too... is there a list of all the permissions to set on folders and files, would like to control that. in MAMP i never had that problem.

  • Double-A-Ron
    Avatar
    Community Member
    599 Posts

    Re: Permissions problem with Assets Link to this post

    .htaccess file writeable?   
    mysite/ folder writeable?   
    tutorial/ folder writeable?   
    assets/ folder writeable?   
    temporary folder writeable?

    So all of those 755

    Cheers
    Aaron

  • Macello
    Avatar
    Community Member
    37 Posts

    Re: Permissions problem with Assets Link to this post

    inlcuding the files in these folders or just the folders?

  • vstrazz
    Avatar
    Community Member
    63 Posts

    Re: Permissions problem with Assets Link to this post

    I've noticed when moving a my current production level silverstripe files on the server to the staging domain, the assets folder needs to have the permissions re set to 777 or I will have problems like the ones you are seeing.

    Good Luck.

  • Macello
    Avatar
    Community Member
    37 Posts

    Re: Permissions problem with Assets Link to this post

    The Problem Still exists, after uploading the files are write and read for user. and by uploading i get this (i tried 3 of five possibles):

    XML-Verarbeitungsfehler: "Junk" nach Dokument-Element
    Adresse: http://swissfinancescout.ch/finanzierungsantrag/?executeForm=Form
    Zeile Nr. 2, Spalte 1:<b>Notice</b>: Array to string conversion in <b>/srv/www/htdocs/web83/html/sapphire/core/model/DataObject.php</b> on line <b>570</b><br />
    ^

    Need Help for That, website should be on already!

    4167 Views
Page: 1 2
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.