Hardware Thread, Local Webserver (maybe plug computer?) in Technical; Anyone have any recommended local web servers? One that will run stuff like Apache, php, mysql? Looking for a cheap/low ...
24th January 2013, 01:04 AM #1
- Rep Power
Local Webserver (maybe plug computer?)
Anyone have any recommended local web servers? One that will run stuff like Apache, php, mysql? Looking for a cheap/low power option. I've looked at a couple different options including using a Synology NAS which seems like it may be the easiest at this point vs something like those plug computers like the GuruPlug Server. The machine doesn't have to be fast, just work reliably.
24th January 2013, 09:51 AM #2
Old curriculum machine + linux?
24th January 2013, 10:11 AM #3
24th January 2013, 11:45 AM #4
ISPconfig runnign on above sort of hardware.
24th January 2013, 12:46 PM #5
A Raspberry Pi. Cheap ($35), low power (runs off a 5v mobile phone power supply), large helpful community for support, pre-made operating system images ready to boot, you can probably even find one set up already as a web server.
Originally Posted by mattcrum
24th January 2013, 06:55 PM #6
- Rep Power
This is a great idea! In my particular circumstance, I will be deploying web servers in multiple schools and can't count on old machines being available. This, in fact, will be the first go round with technology for these schools as they will be primarily in rural areas in different parts of the world.
Originally Posted by mats
Shadowx, that's helpful. You know what the easiest way to get a stack of apache, php, mysql running on linux? I will be training foreign IT professionals and their competencies may not (probably not) necessarily linux-based web server management. I'm looking for something simple as XAMPP on Mac to install and run. (That's an ideal case anyway).
I will also look into ISPconfig. Good suggestion!
dhicks, I actually have a Raspberry Pi around the lab here. I was also thinking about using that. You think the RAM is competent to serve only like...40 clients? What do you think?
Thanks for all the quick responses!
24th January 2013, 07:24 PM #7
We just started up another HyperV VM for our web server (Server 2008 R2), runs SharePoint, Home Access Plus+, various WordPress sites and a few custom built Silverlight/SQL sites we have made in Visual Studio LightSwitch.
SharePoint is the real hog but everything else (keeping in mind its PHP and MySQL based) all ticks over with very little resource usage.
24th January 2013, 08:27 PM #8
Yes, I should think it'd be okay - depends on what, exactly, you're serving, of course. There was an item on the Raspberry Pi site a few months ago showing a Raspberry Pi hosting the Raspberry Pi site in a datacentre somewhere in Cambridge. That was for a mostly static site, so performance might suffer if you have a lot of large PHP pages, but it's probably worth a try. The Raspberry Pi is small/cheap enough to simply post in a jiffy bag, complete with OS and content set up and ready to go, to whoever you're dealing with. Installing Apache, MySQL and PHP on Linux is very easy - on Debian (the recommended distribution for the Raspberry Pi) it should pretty much be "apt-get install apache mysql php".
Originally Posted by mattcrum
28th January 2013, 12:00 PM #9
You would probably want to do some more googling and research in order to write a simple and reliable guide but the basic steps are pretty simple, firstly get yourself a linux distro, for a simple server I think Ubuntu is your best bet, get one of the "LTS" versions which are Long Term Support, IE they release updates for longer. Get that onto a DVD and whack it in the server drive. The rest is fairly straight forward, setting time zones etc... the important bit is going to be the partitioning.
Originally Posted by mattcrum
I dont know if you have used *nix before so I will assume you havent, just skip over this lot if you know what you're doing! Essentially I would set it up to keep all the important folders separate so you will need something like the following:
ROOT Partition (Like the C Drive)
Mount Point: /
Size: Anywhere from 10-20gb or smaller if space is short
Swap partition (Like a pagefile)
Mount Point: N/A
Type: N/A (I think)
Size: Equal to or double your RAM size
Home partition (Like My Documents)
Size: 5-10gb, largely irrelevant so smaller if space is short. It wont get used on a server anyway
Var Partition (Variable data - Will hold the website files etc... so this needs to be big)
Size: Everything left on the disk!
In terms of how to carry out the partitioning try this guide: Manual disk partitioning guide for Linux Mint 11 It will look slightly different but same interface behind the theme. Essentially by setting the VAR partition separately if the ROOT partition gets corrupted for some reason or if you want to update the server install your VAR partition is completely isolated so you can just unmount it and do whatever you like, copy it off to a new server, update the distro then remount it etc... and your data is safe. If you want an on-disk backup you can just add another partition in there mounted at "/backup" and give it 20gb or so. Primary/Logical (IIRC) refers to a "physical" partition compared to a logical one, so for the important areas like root and VAR I go Primary, everything else can go logical. The SWAP partition will act as your pagefile taking lesser used data from RAM temporarily if needed. HOME is like my documents and is largely irrelevant, you want some space there for tinkering but not a whole lot in the grand scheme of things. Just a useful place to act as a drop box for bringing in updates etc...
I can't remember if the Ubuntu server installer gives you a GUI for networking, if not then try this guide for doing in the command-line: Ubuntu Networking Configuration Using Command Line|Ubuntu Geek
Once you get the server install you want to get the Apache server in, then PHP5 and probably PHP5-CLI (Client line functions, useful for Cron jobs later I think) and then SQL, this guide should talk you through that nicely: Installing LAMP(Apache Web Server/PHP/MySQL) in Debian/Ubuntu – Bin-Blog
Once that lot is up and running you should have a webserver ready to go. The only things after that configuring updates which I think by default are to notify you whenever you login but not to download until you give the command and to get used to the command line. It doesn't take long I promise
Once you have the webserver running you should also install Webmin, it's a web interface for the server. Since linux is all flat-file configs (no registry etc...) Webmin actually lets you do really indepth things like change network configs, change file shares, restart services like Apache, re-configure things like PHP, Apache and loads more all from a webpage and probably more importantly it lets you check for and install updates without using the terminal. Linky: Webmin
Try going through that on an old machine and see what works best for your situation, like has been said, that little setup would run on under a 1gb of ram and a 2ghz processor without issues. Apache is pretty rock solid when it comes to security, always be sensible and put it behind a firewall/in a DMZ and keep the updates fairly current. Linux has a utility called IP Tables which does what it says on the tin. It blocks or allows certain ports (or all ports) for certain IPs (or all IPs) allowing you to only allow port 80 traffic for example and blocking anything else. Linky: iptables - Debian Wiki
IMHO any other web server like IIS is a child's toy and opens you up to a world of pain! Give it a play and if you get stuck PM one of the linux geeks here or make a forum post. As with everything do a bit of research and testing, I'm not saying my way is right but it works for me!
EDIT: Seeing what dhicks has said about the Pi I would be tempted to test that setup. You can use the same instructions as I have posted here since you'd be plugging it into a hard drive anyway but as @dhicks said, you could actually set the server up for them, get them to buy a hard drive (or send your data over encrypted or something similar) and then you can keep a standardised setup. Ubuntu also offer a paid system called Landscape: http://www.ubuntu.com/business/syste...ement/features which offers you the ability to remotely control updates and configs from across the net so if you wanted you could even retain complete control over the operating system and let your other guys control their own website data.
Last edited by shadowx; 28th January 2013 at 12:04 PM.
Thanks to shadowx from:
mattcrum (29th January 2013)
29th January 2013, 07:58 PM #10
- Rep Power
Thanks! I have a Pi set up and running currently. I need to run some stress tests on it to see what it can handle. It was pretty easy to get running. I think this will be a great solution to offer! Thanks for the thorough directions. This is great.
With that being said, one of the things that would be really ideal is also have an out of the box alternative solution. The organization I work for is a not-for-profit and we work with a lot of local ICT professionals in developing countries in rural areas that may not have much linux experience. The issue with stuff like the Pi that makes me nervous for some of the schools we work in is the ability to troubleshoot locally if the hardware changes or there needs to be any deviation from the directions I would initially provide for setup.
Some folks we work with are great with this stuff, but others have less experience can find stuff like the Pi intimidating.
29th January 2013, 08:17 PM #11
Set up a golden image and clone the sd cards?
Then you can be sure there'll be set properly and the instructions will be able to be followed.
The pi hardware won't be revised until a new model is released (currently there's an a and b option) , it's part of the concept.
29th January 2013, 10:55 PM #12
If you want alternative hardware, the Intel NUC looks quite interesting - an Intel Core i3 processor, 16GB of RAM and hardware support for virtualisation.Tranquil PC have started making passivly cooled cases for the NUC, which might be better for dustier environments with less maintainence:
Originally Posted by mattcrum
I don't know exactly what project you're working on, but if it's something that needs a web server I'd have thought any configuration / setup could be done in a web interface, letting users access it through any device with a web browser.
29th January 2013, 11:14 PM #13
30th January 2013, 10:25 AM #14
True, although a complete stand-alone server with 16GB of RAM for £500 isn't bad, but it does make you realise what a great device the Raspberry Pi is - an, actual, proper computer for £25-ish. The NUC would seem to be able to take Mini PCI Express expansion cards, so could be suitible to add SATA ports to and make a self-contained storage device - it all rather depends on what the end project is and what kind of storage / computing power they need.
Originally Posted by Arthur
By tabby1039 in forum Mac
Last Post: 1st March 2011, 01:09 PM
By MaceZ4 in forum Scripts
Last Post: 21st January 2011, 01:17 PM
By Michelle in forum Virtual Learning Platforms
Last Post: 1st June 2010, 11:19 AM
By sacabonos in forum Windows Server 2000/2003
Last Post: 14th January 2010, 10:13 AM
By jkearns in forum Scripts
Last Post: 23rd June 2007, 09:44 AM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)