madsrh
Posts: 4
Joined: Tue Mar 12, 2013 11:51 pm

Webserver and NAS

Tue Mar 12, 2013 11:55 pm

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

lleb
Posts: 8
Joined: Fri Aug 31, 2012 12:51 pm

Re: Webserver and NAS

Wed Mar 13, 2013 12:40 am

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.

klricks
Posts: 6498
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Webserver and NAS

Wed Mar 13, 2013 1:31 am

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.
Unless specified otherwise my response is based on the latest and fully updated Raspbian Buster w/ Desktop OS.

lleb
Posts: 8
Joined: Fri Aug 31, 2012 12:51 pm

Re: Webserver and NAS

Wed Mar 13, 2013 1:50 am

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.

sim_tcr
Posts: 326
Joined: Tue Nov 06, 2012 1:01 pm
Location: Bangalore
Contact: Website

Re: Webserver and NAS

Wed Mar 13, 2013 2:38 am

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.
http://raspisimon.no-ip.org
Raspberry Pi Model B x 2, Raspberry Pi 2 x 2, Transcend 32GB Class 10, Transcend 16GB Class 10, Transcend 8GB Class 4, Custom 12V 1.5A (stepped down to 5.5V)

technion
Posts: 238
Joined: Sun Dec 02, 2012 9:49 am

Re: Webserver and NAS

Wed Mar 13, 2013 7:49 am

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.

User avatar
tonyhughes
Posts: 951
Joined: Wed Dec 26, 2012 3:46 am

Re: Webserver and NAS

Wed Mar 13, 2013 8:19 am

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.

Return to “General discussion”