I'm new to Linux and I am interested in installing it on an older computer I have. I want to set a web server up, and install PHP and Perl on it.

My PC is an older HP Pavilion a255c, with an Intel Pentium 4 processor and 512 MB of RAM. I will probably add some more memory later. This PC is more like a sandbox than anything, but I would like to get started quickly with the OS.

Is there a particular flavor of Linux I would need to download because I have an old computer? I was thinking about Ubuntu, but I'm not sure what version to go with.

link|improve this question

possible duplicate of Lightweight GUI Linux distribution for really old computer – BloodPhilia Feb 15 '11 at 22:23
1  
GUI-linux vs SERVER-linux ... not sure if that makes it a duplicate. – akira Feb 16 '11 at 5:00
@Akira "This PC is more like a sandbox than anything" Says nowhere that the OP wants an OS without a GUI... Linux with GUI can just as well be used as a sandbox webserver as Linux without one. And as you can see, all below answers are non-specific to the webserver part... These suggestions can be found in the dupe as well. – BloodPhilia Feb 16 '11 at 10:40
@BloodPhilia: "I want to set a web server up and install PHP and Perl" ... quoting just the parts that fit in is fun. allmost all the distros mentioned in the other answer will cause a big pain when it comes to 'set a webserver up' and most of the answers focus only on the gui part. aside of that: i said "not sure if that makes it a duplicate" .. i tend to see it similar but i am not sure. – akira Feb 16 '11 at 11:29
feedback

migrated from serverfault.com Feb 15 '11 at 21:40

This question came from our site for system administrators and desktop support professionals.

10 Answers

up vote 6 down vote accepted

ubuntu is just fine. you grab the mini.iso, install only the stuff you need and done.

stay away from eye-fancy, eats up ram + cpu. if you want to have no gui at all, do not install anything that sounds like 'x'. if you want a little bit of gui, install something like fluxbox, openbox or something similar.

any other distro is fine as well, as long as you start minimal and grow as you need. every sane distro has a package manager. the name of it is different, the syntax of how to use it is slightly different but at the bottom they are all the same:

 % sudo apt-get install libapache2-mod-perl2
 % sudo apt-get install libapache2-mod-php5

(ubuntu's apt-get at work, will fetch needed runtime dependencies as well, apache2in this case)

what's important to keep in mind: the number of packages available in your distro is essentially the limit of how far you can go. the officially labeled 'lightweight' distros are a bit crippled in that aspect. if you start minimal with a bigger distro you can grow without much hustle, with the smaller ones you will end up either switching or compiling all your stuff yourself (which is ok if you want to learn, burn time or anything in between)

link|improve this answer
1  
Yep, Ubuntu - try out the standard install (Gnome GUI) and then if that seems a bit sluggish you could always move to the XFCE GUI - or just install Xubuntu (with XFCE) anyway: xubuntu.org – Linker3000 Feb 15 '11 at 21:51
1  
Another thought is to install the a GUI, such as Gnome GUI, then disable it after you are done configuring the server to save CPU and RAM. – David Feb 15 '11 at 22:04
@David: I would hope that the GUI stuff only consumes CPU/mem resources if a user actually logs in and their account loads it. If he logs in to this box remotely from the command line, there shouldn't be any heavy GUI things running. – FrustratedWithFormsDesigner Feb 15 '11 at 22:23
Thanks for your input guys! I'm not interested in much of the GUI stuff. I want it lightweight and install pkgs as needed. I just want some easy to setup so I can play around. – jdamae Feb 15 '11 at 22:35
@jdamae: ignore the gui comments, start minimal and the get what you need. in that order. – akira Feb 16 '11 at 4:50
show 1 more comment
feedback

You can try:

Damn Small Linux

Crunchbang - extra light!

FVWM

Mint XFCE

Mint Fluxbox

Xubuntu - more lightweight than the regular edition

.. these, IMO are in increasing order of utilization requirements of RAM & CPU, I suggest you try them all .. each provides varying kinds of customization and features. I guess, you try each of these and only then choose the most suitable distro.

P.S: Avoid/Remove all Mono, Python, WINE, KDE-related stuff - they take up lot of RAM & CPU. Use text-based (as opposed to GUI stuff) so lesser memory is utilized.

link|improve this answer
Replace Xubuntu by Lubuntu, it takes less resources and can still use Ubuntu packages. – Lekensteyn Feb 15 '11 at 22:22
or just ignore the whole *ubuntu fancy and just go with pure ubuntu because you can install everything from it. and to install all the crap in the first place to remove it later is just ... stupid. why to fill the disc of this old machine with gigs of data if just a few hundreds of megs are enough? – akira Feb 16 '11 at 5:32
feedback

Pretty much any of them. Ubuntu is a good choice. Or Suse, or Fedora. I use Gentoo. One of the nice things about Linux and its distributions is that they are very modular. You can layer on as much stuff as you want or need for any hardware, from no GUI at all to a full eye-candy 3D suite. So don't pick one based on what PC hardware you have, but rather base it on other things such as familiarity, support, package choices, etc.

link|improve this answer
feedback

Any distro will do, but you might want to consider a nice stable enterprise distro such as CentOS if will one day go live. CentOS is derived from RedHat. Good for servers.

link|improve this answer
feedback

Personally, I would go with Fedora.

Their initial installation will ask what you will want to use the system for. This is a very simple place to just select Desktop and Web Server environments and an hour later (for which you can walk away) you have a working system.

512 mb of ram is a lot for most linux systems and fedora will run blazing fast.

link|improve this answer
feedback

For a headless server (no gui, monitor, or keyboard), try Ubuntu 10.04 server. You will get an option to install the LAMP stack on installation, saving you some effort and configuration headaches. Works on my Pentium 3 home server.

link|improve this answer
feedback

A pentium IV is hardly 'old' in this context - i've successfully used a PIII 450 as a server. As far as ubuntu versions goes, ubuntu server works well - i prefer to use the LTS on production servers since i have longer support, but if you intend to wipe the server regularly it shouldn't matter.

alternately you can do a plain vanilla install off the 'mini' disk, and simply select the 'LAMP' server set of tasks from tasksel (which should pop up when you install).

If its a pure server, forget a gui. If you intend to use it for other things, openbox or some other lightweight window manager should be enough.

link|improve this answer
feedback

I would use Damn Small Linux because of its small memory and cpu requirements. After setting it up you could even shutdown the window manager and run it without the gui.

Get all the info you need at http://www.damnsmalllinux.org/

link|improve this answer
damnsmalllinux.org/packages.html grep for apache, php and perl. – akira Feb 21 '11 at 5:55
feedback

I rebuild and fix old computers from parts with linux. As fax as old is concerned I have Slitaz lo ram running on a Pentium MMX laptop. I also run a website for people who like fixing old pcs and laptops with linux. http://www.linux-for-old-computers.co.uk

link|improve this answer
feedback

I would grab the Ubuntu server install and choose "Minimal server install" by pressing F4 at the CD boot screen. Just follow the instructions while installing, at some point it will ask for optional server components to install:

enter image description here

At this screen choose the following:

  • LAMP Server (Linux, Apache HTTP Server, MySQL and Perl/PHP/Python)
  • OpenSSH Server (to manage the server via putty)

This makes for a very lightweight server. There is no GUI, so you will have to do everything by command line after the install, however, the installation of ubuntu will cover almost everything you described.

I am not sure how you would like to manage your web content, FTP or just a direct SAMBA/NFS share. I think you can select both at the optional component screen.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.