Answer the question
In order to leave comments, you need to log in
How to set file permissions in digitalocean?
Ported the site (MODX) to Digitalocean .
There is a Vesta panel, a separate user is set up.
The problem is that all site files have 664 permissions, but they cannot be changed and saved in the site admin panel.
If you change to 666 - then everything is ok.
Through FTP, everything is normally edited and saved.
I think that in the server settings, not everything was correctly registered.
Tell me which way to dig.
Answer the question
In order to leave comments, you need to log in
It would be better to manually install apache2-mpm-itk and set the specific virtual host to run scripts as the user who owns the files.
Now php is running on behalf of the web user, so there is no way to change access rights
Understood.
And how to set for a specific virtual host to run scripts on behalf of the file owner?
Or where can I read?
A user is created, added to the www-data group, the rights to files and folders are assigned as needed.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question