LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Apache directory... (https://www.linuxquestions.org/questions/linux-newbie-8/apache-directory-45834/)

Z28kid 02-17-2003 01:20 PM

Apache directory...
 
I'm tryin to configre the apache web server and the book i have says the file is located in /ect/httpd/conf but there is no directory it says. I know the webserver works but where could i find the configure file. Anyone know what other directory it might be in?

bulliver 02-17-2003 01:25 PM

try /usr/local/httpd/conf

If you still can't find it use 'locate httpd.conf'

If you told us your distro and how you installed apache it might give us clues too...

Z28kid 02-17-2003 03:03 PM

I got this linux of out of dummies book. i just installed everything.
I went to search files and for starting folder left "/" then i typed in httpd.conf and it come up with folder /ect/httpd.conf...but when i type this from the terminal why can't i get it?

MasterC 02-17-2003 04:15 PM

Probably because it's /etc/ not /ect :) Try typing: cat /etc/httpd.conf

Cool

Z28kid 02-17-2003 04:51 PM

i did that to and it still says "no such file or directory"

i have no clue..

MasterC 02-17-2003 04:54 PM

Ok then, what does:
ls -l /etc/httpd.conf produce? On my box it's: /etc/apache/httpd.conf so maybe your locate was that instead?

Cool

Crashed_Again 02-17-2003 05:00 PM

What about searching for it?

First do:

updatedb

That will take a while. Then do:

locate httpd.conf

MasterC 02-17-2003 05:02 PM

Crashed, according to a post just above mine he already did... However, I think your suggestion is more along the lines of what I'd do too (I prefer locate over find). 1 think to note Z28kid is you may get several files from a search or a locate, post all of their locations up so we can help with which one to use...

Cool

Z28kid 02-17-2003 05:10 PM

I finally got it to dispaly all the files. But then when i want to look at httpd.conf "it says no file or directory" to look at this wouldn't i type ls /etc/httpd/conf/httpd.conf? is this right?

MasterC 02-17-2003 05:12 PM

That would show information on it, I actually use ls -l but ls should work. If httpd.conf is in /etc/httpd/conf/httpd.conf (which is confusing as all he!!) then you can edit it with your text editor, or you can just view it with less:
less /etc/httpd/conf/httpd.conf

However, you do have to make sure you have read priv's on it. It should still show up in an ls assuming your are root and/or your user has execute priv's on the directories.

Cool


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