LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   apache default inst.. (https://www.linuxquestions.org/questions/linux-newbie-8/apache-default-inst-95809/)

Robin01 09-23-2003 05:39 AM

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

david_ross 09-23-2003 09:54 AM

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

Robin01 09-23-2003 11:44 AM

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

david_ross 09-23-2003 03:04 PM

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.

Robin01 09-23-2003 06:31 PM

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..

nidua18 09-23-2003 06:49 PM

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.

david_ross 09-24-2003 01:18 PM

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.


All times are GMT -5. The time now is 02:40 PM.