1

This is a re-make of this interesting question. I've rephrased it slightly to avoid pulling aggro and to provide some quality information, as I've pondered this before, but only JUST ran the numbers..

I am setting up a personal website to help me learn (PHP, MySQL, HTML, Javascript, CSS, etc)

I have the following machine laying around:

  • Pentium 4 HT @ 3.0GHz
  • 1GB of Memory
  • Plenty of Storage
  • A freshly registered domain for this project

My question is, for modern web technologies, is this machine sufficiently powerful? I want to keep my costs very minimal, so I'd rather use the hardware I have than rent a server or something.

James T Snell
  • 5,892
  • 1
  • 22
  • 33
  • 3
    Not gonna lie, I was this close `--> <--` to downvoting you for having a World of Warcraft link in the question. – Breakthrough Aug 09 '11 at 23:07
  • @Breakthrough I was but a nbsp away?! Whoa, thanks for your charity! And I completely understand, reminding people of something so addictive is simply rude. And I apologize. – James T Snell Aug 09 '11 at 23:11
  • "...not generally applicable to the worldwide audience of the internet." ... But.. As a user of the Internet I find many people, especially on SuperUser seem interested in the technologies that it is built upon. – James T Snell Aug 09 '11 at 23:25
  • 2
    This quickly dates and thus too localised. Having no definition of "sufficiently powerful" makes this NARQ. – random Aug 09 '11 at 23:27
  • 1
    @random - thank you for the explanation. That certainly helps. Maybe I should try to derive & show a solution to illustrate that personally hosting something on 8yr old hardware will always be more expensive than renting a VM on a decent datacenter? – James T Snell Aug 09 '11 at 23:30
  • @random - I guess this is sufficiently broad, it's older..? http://superuser.com/questions/321140/how-to-make-ati-graphic-card-switching-work-better – James T Snell Aug 09 '11 at 23:45
  • 2
    I agree with @random that this is too localized, and the wording of the question is ambiguous - it basically asks, "I have a computer with exactly these specs, can it do exactly this thing?" The info you presented in your answer is interesting though, and could fit on SU in a different format. If the question were worded more along the lines of "what steps would I need to take to configure a home server, and how would I determine what specs were sufficient" then it would be a better fit. Alternatively, a post about home servers would be appropriate for the [SU blog](http://blog.superuser.com). – nhinkle Aug 10 '11 at 05:40

3 Answers3

4

is this machine sufficiently powerful?

Yup, that will run it. But I don't think it's in your best interest, financially.


In this case, the "correct" answer "is" the free tier of Amazon's EC2. (or a similar service). It's pretty extremely awesome. If you pay for a 3yr term on a Micro Instance (that's $82), you'll likely save a fair bit of money:

Here's a little "proof" for you:

Assumptions:
 - Your P4 eats 200W while idle (a decent guess for a 3GHz machine)
 - You pay 0.07 $/kWhr
 - You'll leave your P4 on 24/7

200W = 0.2kW

3 yrs = 3 * 365 days/yr * 24 hrs/day = 26280 hours

Thus you'll need 0.2kW * 26280 hrs = 5256.0kWhrs

Which @ 0.07 $/kWhr will cost 0.07 $/kWhr * 5256kWhrs = 367.92 $

So, running your P4 will cost you a lot more. The numbers may be out a bit, but your P4 costs you an order of magnitude more, that's not small. If you're skeptical, still, go grab one of these to see how much power you're really dumping in to that old space-heater.

I've found that I get pretty far on the AWS EC2 free tier, so it may not even cost you anything, for what you're talking about. I'm running a production server on EC2 right now,

I run various things on Amazon micro instances, the 613MB of memory is plenty for web services. A good tip to know is that if you're running a machine with <4GB of RAM, then use 32 bit OSes - because running 64bit apps requires more memory for the same program, so unless you actually are using >4GB of memory, it doesn't matter.

James T Snell
  • 5,892
  • 1
  • 22
  • 33
  • I'll add there are other hosting services that are cheaper still. Here's a seriously lean hosting service I use too: http://www.hostsign.co.uk/site/onedollarvps.html (which costs $1/mth - but is a lot leaner) – James T Snell Aug 09 '11 at 23:09
  • Also - for those that read this question many years from now (presumably).. Obviously you can apply the same kind of rationale to the math. Drop in your actual values then and work it out the same way. – James T Snell Aug 09 '11 at 23:52
  • 1
    wait wait wait, if it's the "free tier" why is it $82? Also 613mb seems really tiny. Can you run the numbers for a saner amount of EC2 memory like say 2 GB? – Jeff Atwood Sep 01 '11 at 10:24
2

This will be more than powerful enough to run you test/development environment; however, it will be MUCH cheaper for you to rent some web hosting from a company. (Just in terms of power used by this machine per month).

Nate
  • 839
  • 4
  • 15
  • 29
  • 1
    You sir, are correct, as per my above proof. I'll reiterate, I only posted this question as a remake of one that was closed as I was submitting my above answer, where I show why you're correct. – James T Snell Aug 09 '11 at 23:06
1

Yes you can run linux and a web server on even less.

Don't forget though that your own PC is good enough to act as a web server and learn on. I assume you have a windows PC? Install the WAMP server which comes with Apache, mysql & php already configured up. It's the quickest way to get up and running on the local machine IMHO.

http://www.wampserver.com/en/

hookenz
  • 4,043
  • 3
  • 32
  • 46