Answer the question
In order to leave comments, you need to log in
How to organize sites on VDS and access to them?
Hello!
I decided to move from hosting to VDS, and I got a little confused on how to place sites on VDS and provide access (for example, via ftp) to a user or group to a specific site.
Actually, I can’t decide whether it’s worth creating a user for each project (site), or making a separate user in whose home folder all projects will be (and there is already access via FTP of the form “user-project folder”), or in general, projects should be stored somewhere in /var/www?
How should one organize servers of this kind? Advise good practice, please.
Answer the question
In order to leave comments, you need to log in
Remote control - ssh by keys, rsync / git - for uploading new content / changes.
If you really need ftp, for example, you can use vsftpd.
And quietly learn something like ansible for quick deployment according to the template for the future.
If users are untrusted persons, it is possible to chroot at the level of services that support it.
Be sure to each site has its own access, its own ssh ftp, its own mysql user. Security rises
Yes, start for each individual user and do a suekzek, in fact, it’s easier to put a control panel on the same executive manager light with a perpetual license for about 20-30 bucks. don't be ashamed to pay once.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question