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?
|
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... |
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? |
Probably because it's /etc/ not /ect :) Try typing: cat /etc/httpd.conf
Cool |
i did that to and it still says "no such file or directory"
i have no clue.. |
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 |
What about searching for it?
First do: updatedb That will take a while. Then do: locate httpd.conf |
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 |
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?
|
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. |