Permissions sphinx

Issue #1127 closed
Thomas Helmrich created an issue

Hi,

what permission should `var/piler/sphinx/` have?

Currently i get a

opendir(/var/piler/sphinx/): failed to open dir: Permission denied in /var/www/piler/model/health/health.php on line 326

Current Permissions:

drwx------  2 piler piler     12288 Nov 11 11:45 sphinx

Comments (2)

  1. Janos SUTO repo owner

    Recent piler version have 700 on the sphinx dir. You may extend it to 750 and chgrp www-data or even to 755. I personally believe that 700 is a reasonable permission running /usr/local/libexec/piler/watch_sphinx_main_index.sh from piler’s crontab regularly (daily). It updates /var/piler/stat/main_index_size file which is read by the health model.

    Btw. I’ll move this functionality to indexer.main.sh, so it will be automatic in the future.

  2. Log in to comment