Help - Search - Members - Calendar
Full Version: Web Server
Linuxhelp > Support > Technical Support
NodMercinary
Ok, I am getting sick of using my slow computer for my graphics editing, so im getting a new one. My current desktop will be put on the side as a web server. What are the recomended stats for a web server? I will probably be streaming audio on it cuz its going to be hosting my bands website.

The PC's Cureent Stats:

Asus A7N8X-X Motherboard
AMD 2500+ OC'd to 3200+
256 DDR 400 FSB
and a 20 Gig HD (but that's not really important)
RedHat 9.0

I'm wondering if the Ram and the CPU are enough... LIke I said, its going to be a graphics and audio rich site.... Like I said, what do u recomend?

Also, I read DHCP tutorial by hughesjr and it was great... is there a nice tutorial for creating a web server by him?
hughesjr
You might want to increase the RAM (512mb would be better) if you expect a great number of hits ... but that machine is great for a web server.

I would recommend CentOS, TaoLinux or WBEL for your webserver software ... I have a LAMP server guide here:
http://www.linuxhelp.ca/forums/index.php?a...=ST&f=15&t=3676

(or also on my website here:
http://www.hughesjr.com/content/view/13/2/Site_News
NodMercinary
Awww, I like my redhat 9 though... why does everyone hate Redhat? I'm new to linux, so I dont know much about the different versions... all I know is that the database admin at my old job recomended RH9... I wanna know how to use RH9 to make a webserver...

Also, I have a RH9 Router and I'm using quicktables to route traffic.. how do I configure port forwarding?
hughesjr
RedHat 9 no longer gets security updates and it not supported by RedHat. (Support ended 3 months ago). I have nothing against RedHat, but don't use distros you can't get updates for.

WBEL, CentOS, TaoLinux are Clones of RedHat Enterprise Linux AS 3 ... which does get security updates. So it is very RedHat 9 like, but recieves bug fixes and security updates.

See this article on Introduction to Enterprise Linux and why it is good...

I would not run a public facing server on a distro that no longer gets security updates. If you do, you are begging for someone crack into your machine. (That is my opinion wink.gif)
---------------
There is currently a problem with machines that have been hacked ... and the machines with a specific root kit are now scanning and connection to other Linux machines. See this post:
http://beau.org/pipermail/whitebox-users/2...ust/002873.html

If you have public facing ssh, check your log and see if some people who you don't know are trying to conenct to your box using the users root, admin, guest, test.

Most of the computers that are trying to scan for ssh ports and make the connections are rootkit'ed ... and I'm not sure, but I think the initial vulnerability was an Apache / mod_ssl issue.
NodMercinary
:-/... well, I still need to port forward right? u missed that question above ^^^^

(I think I may get debian for my web server, cuz its also going to be my only linux computer to play with and I heard debian was cool.)
NodMercinary
port forwarding anyone? I am using quicktables on a redhat 9 router... can anyone help?
hughesjr
I looked at the quicktables website...

http://qtables.radom.org/samples.php?id=26

Basically, this would let you port forward port 80 (http) and port 443 (https) in:

$iptables -A FORWARD -i eth1 -p tcp --dport 80 -j ACCEPT
$iptables -t nat -A PREROUTING -i eth1 -p tcp -d 166.51.160.107 --dport 80 -j DNAT --to-destination 192.168.0.8:80

$iptables -A FORWARD -i eth1 -p tcp --dport 443 -j ACCEPT
$iptables -t nat -A PREROUTING -i eth1 -p tcp -d 166.51.160.107 --dport 443 -j DNAT --to-destination 192.168.0.8:443

(in the above example ... I am assuming that the internal webserver is 192.168.0.8, that eth1 is the EXTERNAL Network Card .... and that 166.51.160.107 is the EXTERNAL IP Address).

I personally use this as my firewall ... it is very similar to the quicktables script:
http://ldp.hughesjr.com/HOWTO/IP-Masquerad...-2.4.X-STRONGER
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.