R
R
RabotnikGosdepa2018-08-29 17:42:45
Nginx
RabotnikGosdepa, 2018-08-29 17:42:45

How to securely isolate a directory from wordpress on Centos7?

I use Centso7
The site is located on the path: /var/www/mysite
I made the user ftpuser, but I can’t give him this folder
ftpuser:x:1002:1002::/var/www/mysite/:/bin/bash
after execution writes No such file or directory
The site is powered by apache:apache
I want to make sure that the user is enclosed in this folder and cannot execute php scripts from outside.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Stanislav Bodrov, 2018-08-30
@RabotnikGosdepa

How to securely isolate a directory from wordpress on Centos7?

1 cgroup
2 appmorp
3 selinux

V
Vladimir, 2018-08-29
@MechanID

read about setting up suphp,
then each site will run php from its own user and set up ftp for the same user.
so that the user of different sites does not run each other's php - you need to correctly configure the access rights to the files

S
SergeySL, 2018-08-29
@SergeySL

1. Add the ftpuser user to the apache group
2. Set permissions on the /var/www/mysite folder 775

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question