I'm in need of a little advice on setting up a Ubuntu web server.
I'm going to be running several websites on this server, starting with 20 and growing from there.
Development is standard LAMP and we're in the process of implementing git for source control.
Currently, when starting a new site. I create a new user. Put a www folder in there, and then a htdocs folder in that. Drop the index in the htdocs. Add/Enable the file for apache and everything is set.
The problems with this is that we have several developers. Different developers work different ways (something I'm working on changing). Some SSH straight in and modify files. Some FTP down, change file and FTP back up. Some use git to pull, commit then push back up.
The problem is creating a new user for each site. On SSH, the person SSH's in, sudo's over to root and makes the changes. If it's a new file the chown it to the right permissions. If they are FTPing, they have to get the FTP username and password (new one for each website) ftp back up, then ssh in and change permission if needed. FTP is a huge pain.
What I want...
I want each developer to have their own user/password, and be able to add/delete/modify the websites. Then, if a developer leaves we can shut off their user and they won't have ssh, ftp or any access anymore.
I'm still a little new to Linux/Ubuntu systems. I've got a good understanding I'm just still a little green with setting up larger permission based systems.
Any advice or how you set up your web servers would be greatly appreciated!
Bookmarks