BIDS-collaborative / brainspell

brainspell is a web platform to facilitate the creation of an open, human-curated, classification of the neuroimaging literature
https://gitter.im/BIDS-collaborative/brainspell
2 stars 6 forks source link

Fix server + port URL for php requests #25

Closed stefanv closed 8 years ago

jbpoline commented 8 years ago

Just tried it - works fine until you try to do a search: I then get :

Impossible to open an index at /var/www/html/php/LuceneIndex fopen(/var/www/html/php/LuceneIndex/read.lock.file): failed to open stream: Permission denied

Not sure where these permissions should be set (if they should :)

should something like

RUN find /var/www/html -type d -exec chmod u+rwx,g+rx,o+rx {} + RUN find /var/www/html -type f -exec chmod u+rw,g+r,o+r {} +

be added ?

stefanv commented 8 years ago

That's a different problem. You need

chmod o+w LuceneIndex

jbpoline commented 8 years ago

chmod a+w site/php/Lucene/Index/* worked :) thanks -

Should this be run in the apache Dokerfile ? Just curious if others had to do it as well: was this needed on OSX and Windows ?

stefanv commented 8 years ago

Not in the Dockerfile, perhaps, but rather in the installation instructions. On Feb 19, 2016 22:45, "Jean-Baptiste Poline" notifications@github.com wrote:

chmod a+w site/php/Lucene/Index/* worked :) thanks -

Should this be run in the apache Dokerfile ? Just curious if others had to do it as well: was this needed on OSX and Windows ?

— Reply to this email directly or view it on GitHub https://github.com/BIDS-collaborative/brainspell/pull/25#issuecomment-186523458 .