I have a daemonized service that generates content at /usr/share/service/content
I need this content to be accessible from PHP.
The service runs under a user named _service which belongs to the same group as the one running PHP (www-data). Both service and content directories are owned by www-data, and has group write permissions enabled, which I assumed it should suffice.
The service's content is being generated but not stored/written in/to content.
If I make the service to run under the www-data user it does write the content, and it's accessible from PHP.
What part of my assumption is wrong?
Also, what are the implications of having a folder outside /srv/... being accessible to the www-data user?