Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-22-2006, 12:27 AM   #1
Registered: Feb 2006
Posts: 31

Rep: Reputation: 15
Question Apache and PHP for total beginner

hi ppl! new guy to linux here. so here's the deal.. i have this really old laptop at home, and am wondering if maybe it can be a linux server for a website??? the specs are:

HD: 6 GB
Toshiba Satellite
and thats about all i can remember. i plan on installing Mandriva 2006 Free soon, and totally annihilating the windows 98 thats on there now. but it may be wizer to use a lighter version of linux (if so, do tell!).

so, my first question is:
1) can my old laptop become a server, and which distro should i use on it?

now.. once that question is answered..
i am a TOTAL noob at apache and php, like i know NOTHING about them, only that apache is a webserver and php is an advanced programming language (btw, i can program in C++...)
so, any good basic sites?
and work my way up from there?
i know php[dot]net is a good site, but theres not really beginner SETUP stuff there.. at least i didnt see.

thanks for your help!
really wanna get this going...
oh, and if the server doesnt work on my other laptop, the second question still aplies..

Last edited by legendaryhwk; 02-22-2006 at 01:01 AM.
Old 02-22-2006, 03:27 AM   #2
Senior Member
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
A better site to start off with PhP would perhaps be

It contains a link to and a few other interesting PhP related sites too. is not so newbie-friendly at first sight, but it does contain a wealth of info on PhP and it's commands. So you'll probably go back to it someday.

As for apache, you should go to That's the main site from the Apache foundation and it contains plenty of docs and tutorials on how to set up the Apache webserver (httpd) and probably mentions how you can add modules like mod_php (used to support PhP webpages on the webserver).

As to which Linux distro you need. A light-weigth distro would be a good choice if you were going for performance. But those distros may be a little harder to configure. So it depends more or less on your Linux experience.
Almost any distro nowadays comes with the apache webserver, I think. So, you can pretty much choose whatever distro you like.

So, yes, your laptop could become a webserver for instance for a small local network.
Using it to host websites for the entire internet may be a little too demanding, if your sites will get plenty of visitors. But you can start off with your laptop and possibly move on later if the load becomes too high.

The only downside I see to using a laptop as a server is that the laptop will need to stay connected to your network all the time in order for the websites to be accessible all the time. So you can't take it with you wherever you go anymore, which beats the primary purpose of having a laptop.
Old 02-22-2006, 08:50 AM   #3
Senior Member
Registered: Oct 2005
Location: Denver
Distribution: Sabayon 3.5Loop2
Posts: 1,150

Rep: Reputation: 45
That laptop is running big time low on ram. I would upgrade if I were you. Most current linux distrobutions, especially for a server, will want more than 64. That sounds like my old toshiba down to a tea. I have a Satelitte 2669DVD, and I upped it to 256. This was a long time ago but didn't cost much to do it. If you don't intend to upgrade, go with a small distro, or do a very minimal install of a larger one. You only have a 6gig drive to work with, and you only have 64Mb of ram to work with. That isn't a lot in modern standards.

For all my php needs I use I have yet to find a better site with more people willing to help you out.
Old 02-22-2006, 05:28 PM   #4
Registered: Feb 2006
Posts: 31

Original Poster
Rep: Reputation: 15
wow thx for the help, ill go check those sites out as soon as i have time.
about the laptop:
u see, its so old that i DONT carry it around .. hehehe. i only use it for simple stuff like websites and msn, at home, on a wireless network. ive considered updating the ram, but it will only take 128 max.. i guess it might make the diff now that im considering making it a webserver. and i dont think ill be expecting a very large number of ppl accessing it, but if it ends up surpassing my expectations, i can just move on to a better server
ill at least already have the site ready.. haha

thx again!
any more help appreciated!
Old 02-23-2006, 01:10 AM   #5
Registered: Feb 2006
Posts: 31

Original Poster
Rep: Reputation: 15
oh and one more thing! im guessing PHP 5 is better than PHP 4????????
Old 02-23-2006, 01:21 AM   #6
Registered: May 2004
Posts: 123

Rep: Reputation: 15
I personally still use PHP4. Go with 5 if you want better object-oriented support.

Also - if you run the laptop as a server I'd suggest using a wired connection over wireless.

Last edited by silmaril8n; 02-23-2006 at 06:23 PM.
Old 02-23-2006, 08:13 AM   #7
Senior Member
Registered: Oct 2005
Location: Denver
Distribution: Sabayon 3.5Loop2
Posts: 1,150

Rep: Reputation: 45
5 better than 4? Hmmm... How about 5 different than 4. It does have more support for things, but I guess it all depends. I learned 3. And then 4, And haven't done a lot in 5, but some of what you can do in 5 can't be done in earlier versions, which is not all too shocking. I suppose it is probably best to start new, like learning HTML wouldn't be half as useful as going straight to XHTML and CSS now.

I would recommed learning the latest just because it will probably have better training support being more current.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multicount in PHP , displays visits on current day, week, month, year and total visit xbaez Programming 1 04-24-2005 03:50 AM
Mandrake 10 - Install Apache (BEGINNER) mattyk6 Linux - Software 3 01-15-2005 05:53 PM
php apache or php cgi - php learner rblampain Linux - Security 3 12-18-2004 12:10 AM
PHP-Mysql Tutorial for beginner/dummies ewinandar Programming 1 11-10-2004 03:10 AM
Limiting the total amount of memory usage by apache. Linux - General 8 08-30-2002 10:56 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:26 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration