Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In my current home-network setup, i am running freenas 8 on a mini-itx box (on which i store all my files). I'm thinking about building an extra l.a.m.p. server with some spare parts (for use in my web-development, and related projects).

I'm thinking it would be great to have this lamp server also be the middle man in serving files (from my nas) to selected friends and family (preferably over a web interface, something like ajaxplorer for example). So in this setup the lamp server will be the gateway between my home-network and the web (and will thus hopefully make it easier to control access from and to the web).

Is this possible? Does anyone have any experience with this kind of setup, and what are the potential pitfalls?

share|improve this question
up vote 3 down vote accepted

Yes, it's definitely possible. You could also share them over the web directly via the NAS. To do it from the LAMP system, you just need to mount the filesystems on the LAMP machine (likely via NFS) and configure your webserver (ftp, ajaxplorer, etc) to use those mounted directories to serve files. This would basically be the same approach as if you wanted to serve files directly from the LAMP machine.

This is a fairly common approach, and for a home setup there aren't really any caveats, it should just work.

share|improve this answer
I also would recommend to have a look at sshfs, espacially for a job like this, since it is extremely to set up. – twall Mar 16 '12 at 9:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.