FunnyMonkey / pressbooks

PressBooks - The CMS for books.
http://pressbooks.com/
0 stars 0 forks source link

file permission error #2

Closed bdolor closed 9 years ago

bdolor commented 9 years ago

export routine hung on a file permissions error. There was a .dat file in this directory that it said it couldn’t open: /pressbooks/wp-content/plugins/pressbooks/symbionts/mpdf/ttfontdata

screen shot 2015-02-03 at 1 19 34 pm

I was able to work around this by modifying the permissions on the directory. Managing file/directory permissions with git is a likely/possible fix.

jgraham909 commented 9 years ago

I don't want to adjust the existing permissions in the repo as those are already fairly permissive giving full access (read/write/execute) to owner and group with read and execute to 'other'.

Likely this should be a documentation issue to ensure that the directory is owned by either the web user or in a group the web user is a member of. For ubuntu systems this would be www-data.

I'm guessing the best place for this would be in Pressbook's top-level readme.txt under the section 'Part 3, PressBooks dependencies:' where we add instructions to ensure proper ownership of the files.

jgraham909 commented 9 years ago

Additionally the following folders need to have write access;