[Xapian-discuss] Exception: Permission denied using template query

Richard Boulton richard at lemurconsulting.com
Tue Apr 3 09:32:45 BST 2007


Steve Nesbitt wrote:
>> What are the permissions of the parent directories - try:
>    
>   permissions: drwxrwxrwx  - I also changed the directory group to user apache (still doesn't work)
> 
>> ls -ld /var /var/lib /var/lib/omega

What is the actual output of the command Olly asked you to run?  Have 
you really changed /var to permissions drwxrwxrwx (not that you should, 
but accurate information from you is all we have to go on)?

If one of the directories above /var/lib/omega doesn't have permission 
set to allow apache to read the directory, you'll get a permission 
denied error.  So we need to know the permissions and ownership of all 
the directories above it, not just /var/lib/omega, to diagnose the problem.

Also, if any of the parent directores of /var/lib/omega are symbolic 
links, or /var/lib/omega is itself, you might have different problems 
(ie, the permission of the symlink isn't what matters - the permission 
of the directory linked to is what matters).

The output of Olly's command would have diagnosed both the problems, or 
clearly shown that neither potential problem is the cause, without 
needing further communication.  As a general plea to everyone, if asked 
to run a specific command to get information, please cut and paste the 
literal output of that command into your reply if at all possible.

-- 
Richard



More information about the Xapian-discuss mailing list