R
R
Roman2019-04-18 16:30:11
LAMP
Roman, 2019-04-18 16:30:11

And yet, how to properly distribute group rights between www-data and me-as-user?

Hello.
Usually I do it simply - I start Apache2 on behalf of my user (instead of www-data) and the issue with rights and groups does not arise in principle.
But now I had to separate it, and problems began to arise, because I run Composer as a user, and php flarum (in this case, we are talking about the Flarum engine - this is essentially Laravel) is launched on behalf of www-data.
And it turns out that some of the files in the project folder and incl. public is created from, say, me-user, and part belongs to www-data, and there were already problems with the script.
How to solve it completely?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
roswell, 2019-04-18
@procode

Install libapache2-mpm-itk, set the necessary AssignUserID in the virtual hosts configuration, change the owner-group of the directories to the appropriate ones, restart Apache.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question