Page 1 of 1

Webserver and NAS

Posted: Tue Mar 12, 2013 11:55 pm
by madsrh
Hi

Has anyone tried to run a webserver and a NAS at the same time on the PI? I wonder if it has enough juice to cope.

//Mads

Re: Webserver and NAS

Posted: Wed Mar 13, 2013 12:40 am
by lleb
do you mean a software NAS? a NAS is a network accessible storage device. The RPi, has nothing to do with that in general other then connecting to it. For that you would be dealing with the limited 10/100 NIC or worse WiFi to access that data.

As for hosting an Apache server on the RPi, it should be fine as long as there are not to many graphics and the traffic is limited. I would not try to run any kind of SQL database on it though via the web server and def. not a Tomcat either.

Re: Webserver and NAS

Posted: Wed Mar 13, 2013 1:31 am
by klricks
I had a cheap Chinese NAS / USB enclosure that did Torrent, web/ftp server and several other things... but was way underpowered for all that. Here is a writeup:
http://64.13.91.137:86/Comp/650BT/650BT.html

I just converted this NAS to use a RPi board instead of the internal ARM / Linux processor.

My RPi NAS has a 2T drive attached. Works very well so far.. not skipping or halting on video or large file transfers anymore. I am planning on adding Web and FTP server. If that is too slow then I will put the webserver on a 2nd RPi.

My ISP has very slow uplink speed 256kb so I find that it is best to host photos on a hosting site such as Photobucket or Image Shack, and then link to them in my web pages. Though my pages are very simple and plain and is a very low traffic site.

http://64.13.91.137:86/
My site is hosted on my Fedora 17 box at the moment.

Also My ISP like many others blocks web servers on port 80 so I had to choose a different port.

Re: Webserver and NAS

Posted: Wed Mar 13, 2013 1:50 am
by lleb
that being the case, you could try it, ive heard of folks using the RPi as an apache server so in theory it should work. you might run into swap or CPU issues though. Im not sure exactly how heavy apache is on a system.

Re: Webserver and NAS

Posted: Wed Mar 13, 2013 2:38 am
by sim_tcr
I am running a web server (apache) and NAS (1 TB WD My book Essential) using samba on Raspberry pi 24/7.
Never had issues.

Re: Webserver and NAS

Posted: Wed Mar 13, 2013 7:49 am
by technion
madsrh wrote:Hi

Has anyone tried to run a webserver and a NAS at the same time on the PI? I wonder if it has enough juice to cope.

//Mads
As soon as you say "NAS", the 100MB NIC becomes, to me, too limiting. For your needs, maybe not.

The issue of "juice" is heavily dependent on what you're doing. An NFS share should use barely any CPU power.

Re: Webserver and NAS

Posted: Wed Mar 13, 2013 8:19 am
by tonyhughes
All the major and minor webservers run great on the Pi, and graphics are not a problem at all.

I have a graphics heavy static page and the Pi barely bats an eyelid serving it up.