cats.pt

Q: Web Services, apache, user _www, permissions problem

Hi there,

 

Need help, I am getting lost and no more ideas on solving this stupidly simple issue ... please....

 

The problem: Apache - a simple php include - cannot access directories.

Using: OS X 10.11.4 (Build 15E65), Server 5.1 (Build 15S5127), PHP Version 5.5.31, Apache 2.0 (20120211), Xserver 2009, lots of disk and memory.

 

The question: How to set access to _www user to websites (not in default directory).

 

I tried everything:

- Terminal, sudo chown to _www, chmod to 774, chgrp to staff

- In Server.app, can't set owner to _www, but in Storage~Edit permission is shows ok after terminal commands.

- It was on a non-system (second drive) disk before, moved it to the system disk to avoid extra noise

 

That's how it looks in terminal:

$ ls -la /WEB

drwxrwxr--+  5 _www  staff   170 Mar 25 12:36 .

drwxr-xr-x  34 root  wheel  1224 Mar 25 14:01 ..

drwxrwxr--@ 41 _www  staff  1394 Mar 25 12:01 NETFIVE

drwxrwxr--@ 20 _www  staff   680 Mar 24 17:21 NFIVE

 

That's how it looks in Server.app

Note that the OK button is greyed-out, meaning I have something wrong, in this case my guess is the _www user that can't set via [+] because it queries local and network directory and actually _www is not in any of those but as a system user.

Screen Shot 2016-03-25 at 15.18.32.png

 

.... any help will be appreciated,

Vitor Marques

Posted on Mar 25, 2016 8:24 AM