On Tue, Dec 29, 2009 at 08:41:09AM +0000, Paul Grenyer wrote:
Hi All
I've setup an ubuntu 9.10 server at home that I am planning to use instead of the pay for web server I have at the moment. It's the 32bit version running on an old AMD 2.0GHz with 1GB of RAM, that I'm hoping to upgrade to 2GB once I can find some. It's seems pretty nippy at the moment, but it's only running Apache2 and Subversion. You can get up my PHP test page here if you're interested:
I'm doing much the same on my Acer Revo, Ubuntu 9.10 server running apache, mysql and postgresql plus postfix as a mail server.
I've installed vsftpd, obviously so that I can transfer files to it easily and although I can move .php files into the /var/www folder, it is of course owned by the www-data user, so the files transfered, when logged in as me, will not execute. After some googling I read that I can configure vsftpd to give the files the right permissions automatically on transfer, but I can't find out how?
Also, I cannot delete files via ftp that I transfered onto the server using my user. Can that be rectified with vsftpd configuration too?
I don't use ftp at all for transferring files (as in archiving, backup, etc.) I export a filesystem from the server so that other systems on the LAN can copy files back and forth pretty transparently.
You can set up exports from the server so that only specified systems and/or users can read/write so it can be made reasonably secure given that (presumably) it's in a home LAN so physical security is reasonable.
Using NFS makes things *much* easier IMHO. Basically all you need to do is install nfs-kernel-server on the server machine.