Permissions sphinx
Issue #1127
closed
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)
-
repo owner -
repo owner - changed status to closed
I believe that the question has been answered. If not, then please reopen it.
- Log in to comment
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.