Answer the question
In order to leave comments, you need to log in
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
How to securely isolate a directory from wordpress on Centos7?
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question