R
R
rootiys2014-02-23 21:40:25
MODX
rootiys, 2014-02-23 21:40:25

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

3 answer(s)
S
Sergey Pribylskiy, 2014-02-23
@ASP

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

R
rootiys, 2014-02-23
@rootiys

Understood.
And how to set for a specific virtual host to run scripts on behalf of the file owner?
Or where can I read?

E
Evgeny Plotnikov, 2014-02-24
@evgenx

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 question

Ask a Question

731 491 924 answers to any question