Click to See Complete Forum and Search --> : newbie needs help with apache


Zane217
10-31-2002, 09:17 AM
My general problem here is that I would like to get a web server running. I am still a real N00B!! I find it best to learn by doing and have read a lot of docs and forum help stuff and still find myself lost. I am used to windows and when readding a lot of linux stuff I feel like it is french. (I hated foregn language in school)

Befor it gets brought up I want to discuss security… Forget about it. The computer I am “playing with” was just reformated with linux. There are no passwords on the computer. It can be wiped out. It is a second computer. IF hackers break in and fry the motherboard I will not be happy but it is a loss I can handle. I cant learn security untill I get a web page running so I can try security issues out on it.

So hear is what I have I am running a p400 with 196 megs of ram. I currently have installed red hat 8 and apache 2. I originaly tried mandrake 9 and apache 1.3. and had better luck with that but I like the interface of red hat better.

I am sure that apache is installed but if you wan tme to check let me know how and I will. I believe it is not running. I think this because when I open up mozilla and go to http://localhost it says access is denied. In mandrake I found a list of services that were installed it had boxes that were checked or unchecked if a program was running or not or if it was loaded on boot or not. In red hat I can not find this list. I guess the first question is how do I get apache running on boot. (or running in general) because it does not appear to be and there is no program listed in the “start/redhat” listing.

I am knew to the whole linux thing so please use baby steps.
Thanks
Zane

blizz
10-31-2002, 01:44 PM
Hi,

You can start Apache server as follows:

# httpd start

Then try localhost through your browser..

or try

cd /sbin/service

# httpd start

Zane217
10-31-2002, 02:05 PM
thanks, i will not be able to try till after lunch now though.

is there a way of getting it to start on boot?

try to stick around im sure i will have more questions ans i can really use the help.
Zane

Zane217
10-31-2002, 02:14 PM
I snuck off during lunch and tried

when i started apache i got
usage: httpd [D-name]
and a bunch of other text like it
then i got an options menu, this likes liek it worked to me

I put
"http://local host"
into a browser and got
"the connection was refused when attempting to connect"
so i still have a problem

any idea
Zane

Clone5k
10-31-2002, 02:26 PM
Go to the Menu > Server Settings > Services

Scroll down and put a check in the box beside httd.
Click save.

All Done!
:D

payjo
10-31-2002, 05:15 PM
To have Apache start at boot up I would suggest going into your /etc/rc.d/ directory and editting a file called rc.local. Add this line to that file:
/apache_install_dir/bin/apachectl start

my apache_install_dir is /usr/local/apache

Good Luck!

Zane217
11-01-2002, 08:58 AM
Just wanted to say thanks. Apache is up and running. I have a url from dyndns.org and an trying to get it up and running just as a test page now. At work i am behind a good firewall and cant change settings so i will have to gbring this computer home now to try things out. Im sure i will need more help in the future.
thanks again
Zane

P.S. this is accually my first post from a linux machine. :)

My teacher told me to learn something new everyday. At my current rate i will know linux in the year 2347. or so it feels.
:D