I have create a small LAMP server with Apache 2.4 and PureFTP but i have configured the folder of user /home/user1/ with chmod permission username:username for pureftp in this case via filezille i can edit and upload file but apache can't read or write file, if config apache:apache or root:root all work but via fizilla i can't upload or edit file.
I'm not that good with permission and this is my first LAMP installation =)
File permission for folder 755 and 644 for files, user and group for /home is root for /home/username is the respective user.
Run apache with nobody user and nobody group
etc/passwd for nobody: nobody:x:99:99:Nobody:/:/sbin/nologin etc/group for nobody: nobody:x:99:
Please can you help me?
I use Centos 7 x64.
Thanks.
/var/www/html
as document root of your apache server and make the same folder as home folder for your ftp user. That would solve your problem. Don't change permissions or ownership of users home folder. You'd end up loosing ssh acces of your server.