New to Apache 1.3.27 for Linux, need help

Massonite

Member
Feb 23, 2001
89
0
0
Hey guys

I'm just wondering if anyone knows how to set up a website directory for Apache 1.3.27 for Linux. I'm running Red Hat 8 and I'm new to Linux admin. Any help would be appreciated.

Thanks
 

skyking

Lifer
Nov 21, 2001
22,705
5,829
146
take a close look at httpd.conf, the apache configuration file. Usually, you put your content in a directory labeled www; Take a look at how apache points to that directory in httpd.conf, and also at the very end of the conf file in the virtual server section.
 

Massonite

Member
Feb 23, 2001
89
0
0
OK, will this allow me to host multiple websites? A small part of my business I will be running involves webhosting, and I'm trying to do it on Linux so I can avoid shelling out $3000 for Win 2K/2K3 Server. I have a couple books on Linux administration, but there's not a whole lot of in depth stuff about Apache. I was thinking of getting a book about it, but I figure I can get some documentation online. You know of any good websites that have a good downloadable manual I can read?
 

groovin

Senior member
Jul 24, 2001
857
0
0
yes you can host multiple sites. dont let the config file scare you, its really not that hard. my advice would be to just look at the documentation on apache.org and scan the net for what you want. over 60% of the worlds web servers run apache, that should give you some idea on how powerful it is as well as be a good indication that there is probaly lots of docs and how tos on the net.

good luck!
 

chsh1ca

Golden Member
Feb 17, 2003
1,179
0
0
The Apache documentation at apache.org is very thorough, and you'd be interested in Virtual Hosting, which is relatively trivial once you understand the basic syntax. I'd also recommend the Apache Server Bible for 1.3 series Apache installations. It's a bit outdated, but the basics are still the same. For Apache 2.0 though, you may want to find a newer resource.
 

Massonite

Member
Feb 23, 2001
89
0
0
Thanks for the help guys. I'm going to look for some Apache books at Chapters or something. I'm sure that I'll figure it out.

I'm actually running IIS 5 at the moment because I know that like the back of my hand. I'm playing with Linux on a separate machine that's not on my network except for 1 machine which I use to test the configuration. Once I get it figured it and I'm comfortable with it, I may migrate my sites over to Apache.

One other thing. I tried to install Apache 2.03 or something, and it kept telling me stuff about dependancies, and it was a pain to find them all. Can someone give me a quick fix to get the dependancy issues settled? And why can't it be simple like Windows to install programs? lol
 

groovin

Senior member
Jul 24, 2001
857
0
0
as Need4Speed said, package managers are good ways of resolving the dependencies.

Why cant it be easy to install like Windows programs? well, at one point, i had to pick up a book and learn about NT/2k, and then I had to pick up another book about IIS... same goes here. once you learn it and get used to it, itll get easy. not as easy as M$ stuff, but I see it as a good trade off for performance and stability. You know, they do have a windows version of apache, but i dont know how well it works and you already said you didnt want to spend many $$$ on windows so i guess ill stop rambling now =)
 

Massonite

Member
Feb 23, 2001
89
0
0
lol... well i am MCSE and MCSA certified, so most of my training is with M$ Windows 2000 Server. I have an evaluation copy that I'm using, which came with my textbooks in school. I plan to use it until:

a) I can afford to buy a full version
b) I learn Linux well enough to not need to

Needless to say, I'd hate to spend $3K getting Windows, so I hope I can learn Linux before this trial runs out. Like I said, I have a Linux box setup to play with so I can learn it at my own pace, as well as a few books including "Linux For Dummies"

I tried using Apache for Windows before, but I find IIS is much better. Apache for Linux however, I know is much better than IIS and as soon as I grab that bull by the horns, I'll be happy.
 

skyking

Lifer
Nov 21, 2001
22,705
5,829
146
the ports system on FreeBSD is also painless to deal with. It does not take long to get an apache2.03 server up if you have net access. Build the two floppies, and it goes pretty good from that point on.
 

Massonite

Member
Feb 23, 2001
89
0
0
Yeah a friend of mine just told me to use FreeBSD, but I've never touched it before. How similar is it to Linux?
 

skyking

Lifer
Nov 21, 2001
22,705
5,829
146
I do not know, I have not used Linux, only freeBSD. Someone will come along who can make that comparison shortly, to be sure;)
 

Massonite

Member
Feb 23, 2001
89
0
0
lol, yeah I'd imagine so. I just had so much headache with Red Hat. I may wipe it out and try FreeBSD. What's the newest version?
 

skyking

Lifer
Nov 21, 2001
22,705
5,829
146
5. whatever, but I am not ready to jump on that bandwagon just yet... still having a few teething pains. I have all my stuff at 4.8 and apache 2.03.
 

Massonite

Member
Feb 23, 2001
89
0
0
The system Red Hat is on is a P 200 w/128 PC133 ram, 40 GB HDD... would that be sufficient to run FreeBSD?
 

skyking

Lifer
Nov 21, 2001
22,705
5,829
146
I remotely adminster all my boxes via ssh, and a p200 is plenty for basic html, and even some PHP/Mysql pages. My dev box is a 166 with 64mb of ram, running a php site with mysql db, and it is as snappy as my connection will let it be.(128 k up, oh the agony)
 

Massonite

Member
Feb 23, 2001
89
0
0
Yeah I remember those days. I have 800k up, which isn't too bad.

I don't have the 40 GB drive yet, but I plan to get it by the end of the week. I had a P2 350, but I sold it to my friend because he needed a computer for his daughter to screw up so she wouldn't mess with his... lol So when I get the new drive I will install FreeBSD and see how she works out. :)
 

groovin

Senior member
Jul 24, 2001
857
0
0
i am a BSD user (sorta). i use openBSD for bridging, firewalling (pf rules), and ftp and freeBSD for web, squid proxy, and whatever else. ports on BSD is awesome.

as for how it compares to linux, you can check this out:
http://cache.techtv.com/binaries/2003/freebsd.pdf

but in my own opinion, linux is much easier to use. the setup will basically install and config everything you need, including ssh and a GUI. on freebsd, ive always had to do some tweaking to get X to work on freebsd. if you just want to learn about *nix variants, youll learn more using freebsd/openbsd.

those specs are enough to run freebsd... i wouldnt bother with a GUI though... thatll hog up all your very limited resources.
 

Massonite

Member
Feb 23, 2001
89
0
0
Yeah I don't think I would use a GUI on it, as I want to learn the command structure. I just need to set up the Apache, SSH, FTP, SQL and PHP stuff. I can do all that through command right?
 

groovin

Senior member
Jul 24, 2001
857
0
0
Originally posted by: Massonite
Yeah I don't think I would use a GUI on it, as I want to learn the command structure. I just need to set up the Apache, SSH, FTP, SQL and PHP stuff. I can do all that through command right?

sure can
 

Massonite

Member
Feb 23, 2001
89
0
0
Great! It's 94% downloaded... I'm getting FreeBSD 5.1, and I hope to get the new HDD soon too.

Go me! :)
 

groovin

Senior member
Jul 24, 2001
857
0
0
Originally posted by: Massonite
Yeah and MS runs Hotmail on BSD :)

really? i thought it ran on solaris... but i can understand M$ would probaly rather run it on bsd than something sun made