Web server issues
-
Hello!
First of all, I should say that I have this problem with a Synology NAS, but it is still a machine with Linux that I can connect to with SSH, and besides, it is a topic that has never been entirely clear to me when installing web servers on Debian or Ubuntu.
To the point. In this case, I wanted to set up a blog on my NAS through the web server it has, which is also nothing more than Apache. The web is set up here at:
/var/services/web/In order to complete the CMS installation wizard, I had to make the http user the owner of the folders and files, and at the same time, I had to make two specific folders have the permissions set to 775. From there, I completed it and it already works. The problem is that since I am not a normal user to upload files (whether by SSH, SFTP, SMB…) I have to do it with a user from the NAS, and this makes the uploaded files belong to this user and not to http, so every time I have to enter as root and fix it.
What is wrong with my way of working? How should I do it? You can explain it to me as you would in any more common Linux.
Thanks!
-
Well, it's something that happens to me and I've never thought about how to solve it. In my case, every time I upload something, I have to do a chown -R www-data:www-data /carpeta_web/.
But since it's something I do very occasionally (in fact, almost never), I haven't stopped to think about how to do it another way.
-
The same is that there really isn't a clean and direct way to do it, hehe. I'll keep looking and if I find a better way to do it I'll mention it here.