LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-08-2005, 09:33 AM   #1
wfernley
Member
 
Registered: Apr 2005
Posts: 65

Rep: Reputation: 15
Webserver Speed


Hey everyone,

I am looking to build a webserver out of spare parts I have laying around my house. I was able to build a P2 400Mhz, 64mb RAM PC100 PC. It also has 3 hard drives. A 6.4GB, 3GB and a 1.7GB. I am trying to install whitebox linux on it. I was curious if these PC will run ok for a webserver.

Currently, I will only have 2 websites on it. One gets about 150 visitors a day and the other is brand new and will be launch in a month or two.

Also, the webserver will be running POSTFIX and be a mail server.

Will this work or should I up the RAM at all? Is the CPU ok for the job?

Thanks

Wes
 
Old 08-08-2005, 10:03 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
A P166 can run fine as a webserver and mailserver just as long as your not serving to thousands or running some ecommerce site off of it.

I ran my own webserver on a P200Mhz for almost 2 years without any problems, actually still holds my personal record of uptime at about 235 days as well..
 
Old 08-08-2005, 10:06 AM   #3
wfernley
Member
 
Registered: Apr 2005
Posts: 65

Original Poster
Rep: Reputation: 15
haha very nice

What about the RAM, do you think it shoudl be upgraded?

Wes
 
Old 08-08-2005, 02:57 PM   #4
Vgui
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware
Posts: 496

Rep: Reputation: 31
One thing I found interesting was:

"Coming in second place on the importance scale is the box. The site runs off of a Pentium 3 600 mHz with 512 megabytes of RAM. The machine runs the latest version of Slackware Linux and has a T1 connection to the Internet."

From the bottom of http://www.slackware.com/about/
For the number of hits you are getting, everything should run perfectly fine. Remember that Apache just processes the requests, which really doesn't take much CPU, it is your internet connection that is the main factor in how fast sites load.
And because you are running 2 websites plus the mail server, I would recommend checking how much RAM is free under a medium load, and if needed upgrade it. A command line install normally takes around 8-10mb (at least mine did).

Last edited by Vgui; 08-08-2005 at 02:59 PM.
 
Old 08-08-2005, 03:03 PM   #5
wfernley
Member
 
Registered: Apr 2005
Posts: 65

Original Poster
Rep: Reputation: 15
OK Great. And how do I just do a command line install? Like leaving out the GUI and Windows X and everything.

I also seem to be having a problem where when my PC boots up it says "INVALID SYSTEM DISK" also sometimes it will give me a "crc error - system halted" error.

Would you happen to know what this means?

Thanks
 
Old 08-08-2005, 03:07 PM   #6
Vgui
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware
Posts: 496

Rep: Reputation: 31
Well, it looks like you would have enough disk space to install X if you wanted.
What I meant by command line was that you boot to runlevel 3 (which doesn't start X). You could still install X if you feel more at home / comfortable setting things up from there, but for actually running the server just boot to runlevel 3 to save RAM (I'm going out on a limb and assuming you know how to do that).

EDIT: And no idea at all on that error.
 
Old 08-08-2005, 03:12 PM   #7
wfernley
Member
 
Registered: Apr 2005
Posts: 65

Original Poster
Rep: Reputation: 15
I know I have done it before but I cant remember sorry

Considering I would be connecting all the time to the server through SSH having X on is quite pointless.
 
Old 08-08-2005, 03:20 PM   #8
Vgui
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware
Posts: 496

Rep: Reputation: 31
Well, it depends what distro you are on, but the file you need to look at is normally called "inittab", and is likely in /etc/ or /etc/rc.d/
In inittab you would see a line like the one below:
Code:
id:5:initdefault:
Just change the 5 (or whatever number is currently there) to a 3.

The other option (if you are using lilo, not sure if grub can do it) is to append the runlevel at boot time. In /etc/lilo.conf you would add:
Code:
...
        append="3"
...
To the image you are using too boot up. In the context of an actual lilo entry it would look something like:
Code:
image=/boot/vmlinuz
	label=Linux
	append="3"
	root=/dev/hda1
	read-only
Hope that helps.
 
Old 08-08-2005, 03:22 PM   #9
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 122Reputation: 122
Personally, I would try to get the ram to 128, maybe 192-256, depending on what I could find and what slots I had free. I'm not real familiar with whitebox linux, but I think that's a RH derivative and probably wants you to install X. I wouldn't waste the space myself, but it's up to you. I'd go with something slim, but relatively easy to use (well, actually, I'd go with Gentoo, but that's a bit over most people's heads) like Debian, or maybe slackware.
 
Old 08-08-2005, 03:26 PM   #10
wfernley
Member
 
Registered: Apr 2005
Posts: 65

Original Poster
Rep: Reputation: 15
Yeah whitebox is similar to RH, and RH updates are suppose to work with whitebox, from what I'm told. Yeah I remember how to change to start in runlevel 3. Thanks for the reminder

RAM I will be updating to 256 hopefully........(check with the wife )........

With that problem I am having would doing something to grub fix it? I had a couple people telling me that could be the problem that grub was not installed. I tried doing a "grub_install /dev/hda" but that didn't work. Would lilo be installed from a fresh install or do I have to download it? Could that fix my problem?

Thanks again!


Wes
 
  


Reply


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
Gnome Update, Mouse Speed, Overall System Speed funaroma Linux - Newbie 2 08-04-2004 11:13 PM
cdrecord - trying to use high speed medium on low speed writer captain-cat Linux - Hardware 2 07-12-2004 07:27 PM
WebServer Speed Tester! Gear_freak2000 General 1 02-08-2004 12:25 PM
Is there a tool to monitor Internet connection speed and also network speed? xleft4dexy Linux - Networking 4 10-14-2003 11:29 PM
Can't see WebServer from outside... Can see WebServer locally as http://localhost friddick Linux - Networking 13 08-19-2003 07:27 PM


All times are GMT -5. The time now is 02:57 PM.

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