LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-23-2003, 05:39 AM   #1
Robin01
Member
 
Registered: Aug 2003
Posts: 104

Rep: Reputation: 15
apache default inst..


Hello everybody,

I'm trying to understand apache...
when i installed redhat 9 it also installed apache... wehre is the default installation for apache in rehat9..

sec..how do i search the whole dir for a file.. example of a dos command is dir filename /s , which would search the entire dir for the file name..

thanks
 
Old 09-23-2003, 09:54 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
The apche config file is:
/etc/httpd/conf/httpd.conf

You probably won't need to edit it - make a backup if you do. You can start apache with:
service httpd restart

To make it run on boot:
chkconfig --levels 345 httpd on

As for searching - use:
find / -name nameofile

That is where / is the path to seach in. You may also want to use locate. It uses a database so seaches are quicker:
locate nameoffile

To find th elocation of programs in your path - use:
whereis progname
 
Old 09-23-2003, 11:44 AM   #3
Robin01
Member
 
Registered: Aug 2003
Posts: 104

Original Poster
Rep: Reputation: 15
Hi David_ross

thanks for getting back to me on this subject.

for education reasons i reinstalled redhat9 without apache but there were default apache files that were installed which i couldn't do anything about...

So to learn how apache works.. i download apache from apache iste and installed it according to an instruction found on the net. no problems or error msg were displayed so i'm assuming it installed correctly. it installed apache of /wwwroot.

so my question is, which apache files is it using to run apache, I'M SO CONFUSED ON THIS. since now there are 2 httpd.conf(one in the new install).

- i'm assuming etc/httpd/httpd.conf is the default file and is this the one that i HAVE to use or can i use the one in the new apache install which is of the /wwwroot/conf. but http://localhost seem to pointing to an old documentation or wepage...

- sec... when apache is running is it running from the new install or is it running it from somewhere else, maybe from a default configuration when i installed redhat9.

i was able to start up apache from /wwwroot/bin/ apac. start and this seem to start apache...

any help u can give me would be greatly appreciated
thanks
 
Old 09-23-2003, 03:04 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You should use the one from the new install. The location of config files is specified during compile time.

The location will be relevant to what is specified in httpd.conf

As for which one is running - that depends on how you started it. You should know how you started it so that should have some baring on what binary was executed.
 
Old 09-23-2003, 06:31 PM   #5
Robin01
Member
 
Registered: Aug 2003
Posts: 104

Original Poster
Rep: Reputation: 15
hello again

Ok, to put a closure to this....

My new install of apache is located in /wwwroot..
If i start apache from “/wwwroot/bin/apachectl start” , its using the newly install apache files to run apache.

sec..
When it comes to which httpd.conf apache is using...
apache will use the one in /etc/httpd/conf/httpd.conf no matter what? And the one located in the new install /wwwroot/conf/httpd.conf wont be recognized by apache because by default it will use etc.httpd/conf/httpd.conf?


robin..
 
Old 09-23-2003, 06:49 PM   #6
nidua18
LQ Newbie
 
Registered: Sep 2003
Posts: 26

Rep: Reputation: 15
How can I uninstall the Apache server I downloaded, compiled and installed from apache.org. Since RH9 installs one whether you like it not I might as well us it.
 
Old 09-24-2003, 01:18 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Quote:
Originally posted by Robin01
hello again

Ok, to put a closure to this....

My new install of apache is located in /wwwroot..
If i start apache from “/wwwroot/bin/apachectl start” , its using the newly install apache files to run apache.

sec..
When it comes to which httpd.conf apache is using...
apache will use the one in /etc/httpd/conf/httpd.conf no matter what? And the one located in the new install /wwwroot/conf/httpd.conf wont be recognized by apache because by default it will use etc.httpd/conf/httpd.conf?


robin..
It will use the conf fiel specifed at compile time - if you didn't specify /etc then it will be the one under the install directory.
 
  


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
Lilo + Windows98 + Slackware 10.0 Default Inst...Please Help! that_guy Linux - Software 2 01-24-2005 07:40 PM
Problem compiling programs using ncurses library (gcc 3.2.2 and RH9 default inst.) jclark7777 Linux - Newbie 1 07-20-2004 01:59 PM
Default Apache Directory emperorjordan Mandriva 8 02-26-2004 11:07 PM
apache default klintonray Linux - Software 7 05-07-2003 05:56 PM
Apache: default.ida ?? jharris Linux - Networking 5 08-10-2001 01:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:05 AM.

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
Open Source Consulting | Domain Registration