LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 05-15-2001, 12:59 AM   #1
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Rep: Reputation: 15

if it is not to much trouble can someone explain, in as much detail as possible, how to install and configure apache on a RedHat 7.1 box? It would be greatly appreciated.

Jase
 
Old 05-15-2001, 02:52 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,121

Rep: Reputation: 121Reputation: 121
That would be alot to explain in one post. You might want to check out their site at http://www.apache.org or try this site out, http://www.faqts.com/knowledge_base/index.phtml/fid/56/
 
Old 05-15-2001, 04:03 PM   #3
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
When you installed Apache, there were additional RPM's for the Apache Documentation. THose have all the info you need.
 
Old 05-15-2001, 04:10 PM   #4
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Original Poster
Rep: Reputation: 15
umm,...i guess I wasn't clear when I stated my problem.

1.) I am new to linux
2.) I don't have apache installed,...at least I don't think I do
3.) I understand what an rpm is but isn't there a syntax to use to make it install into a specified directory? If so what is that syntax and where do I want to install it to, on a redhat 7.1 box

Thanks in advance. Jase
 
Old 05-15-2001, 05:42 PM   #5
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
rpm -Uvh some_rpm_name.rpm is what you need to install. Get the RPM from the Redhat 7.1 site or cd and it will put it where it likes to be.

You may run into an issue where you don't have dependencies installed. When you try to install an RPM and get errors about failed dependencies, just go get the ones you need and install away.
 
Old 05-15-2001, 06:47 PM   #6
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Original Poster
Rep: Reputation: 15
ok,...thanks for that tip. What is the command to see if Apache is running on my box? "which apache" ? and how can I see where it is installed? ie. absolute path.

Jase
 
Old 05-15-2001, 08:04 PM   #7
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Original Poster
Rep: Reputation: 15
well I ran the rpm from the RedHat 7.1 disc and it came back with 2 lines that said something and processed up to 100%,...then that was it,....I have no idea what I did or what it did
 
Old 05-15-2001, 08:10 PM   #8
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Original Poster
Rep: Reputation: 15
I need help installing and configuring apache for use on a LAN,..no internet. I don't know anything about apache so if you could be a detailed as possible that would help.

ps. If you are just going to point to the linux.com HOW-TO's please don't bother,...they are un-resourcefull in the detailed process I need. Thanks in advance

Jase
 
Old 05-16-2001, 10:44 AM   #9
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
Okay... there are several ways to tell if the webserver is running on your system. Here are a few:

1. ps -aux | grep httpd
That should return several instances of Apache if it is running.

2. Point your browser to http://localhost
You will get the default Apache page if its running.

3. /sbin/chkconfig --list httpd
That will show you the runlevels at which Apache is setup to run.

You should install the Apache documentation RPM's as well. They provide very detailed information on how to do just about anything you want. Also, read httpd.conf. That file is well commented with information that can get you up and running fast.
 
Old 05-16-2001, 05:51 PM   #10
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Original Poster
Rep: Reputation: 15
ok apache is not running,...I tried running the rpm from the redhat disc and it said "processing" and it counted up to 100% and that was it,....what do I do now?
 
Old 05-16-2001, 07:11 PM   #11
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
Well... it sounds like you may have a successfull install, its just not running.

As root type "service httpd start". That should crank it up. What did the chkconfig command show? You can do this
"chkconfig --level 35 httpd on" to get it setup to auto start on run levels 3 and 5
 
Old 05-16-2001, 09:09 PM   #12
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Original Poster
Rep: Reputation: 15
ok httpd is started. But if I do a http://localhost I get nothing. I am not running X-windows,...I am just in CLI
 
Old 05-16-2001, 09:12 PM   #13
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
then try "lynx http://localhost"
 
Old 05-16-2001, 09:40 PM   #14
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Original Poster
Rep: Reputation: 15
Alert!: Unable to connect to remote host.


Looking up localhost
Making HTTP connection to localhost
Alert!: Unable to connect to remote host.

lynx: Can't access startfile http://localhost/

thats what I got when I ran lynx http://localhost

any thoughts?
 
Old 05-16-2001, 10:02 PM   #15
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
make sure you have something like this in your /etc/hosts file:

127.0.0.1 yourhostname localhost.localdomain localhost
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem installing Apache 2.0.47 RPM on Redhat 9 linub Linux - Software 0 10-20-2003 06:04 PM
Help Installing MySql, Apache and PHP for RedHat 8 rmedina Linux - Newbie 2 10-18-2003 05:36 PM
Installing PHP with Apache on redhat linux 8 darrrth Linux - Distributions 1 06-13-2003 03:12 AM
Installing PHP from source on RedHat 9 with Apache -- few questions? Bungo2000 Linux - Software 1 06-05-2003 03:41 PM
Redhat 9.0 Installing Apache 2.0 seanmayhew Linux - General 2 05-17-2003 10:20 PM


All times are GMT -5. The time now is 04:15 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration