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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
![Reply](https://www.linuxquestions.org/questions/images/buttons/reply.gif) |
02-17-2003, 02:20 PM
|
#1
|
Member
Registered: Jan 2003
Location: Long Island
Posts: 72
Rep:
|
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?
|
|
|
02-17-2003, 02:25 PM
|
#2
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Rep:
|
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...
|
|
|
02-17-2003, 04:03 PM
|
#3
|
Member
Registered: Jan 2003
Location: Long Island
Posts: 72
Original Poster
Rep:
|
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?
|
|
|
02-17-2003, 05:15 PM
|
#4
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Probably because it's /etc/ not /ect ![Smilie](https://www.linuxquestions.org/questions/images/smilies/smile.gif) Try typing: cat /etc/httpd.conf
Cool
|
|
|
02-17-2003, 05:51 PM
|
#5
|
Member
Registered: Jan 2003
Location: Long Island
Posts: 72
Original Poster
Rep:
|
i did that to and it still says "no such file or directory"
i have no clue..
|
|
|
02-17-2003, 05:54 PM
|
#6
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
02-17-2003, 06:00 PM
|
#7
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
What about searching for it?
First do:
updatedb
That will take a while. Then do:
locate httpd.conf
|
|
|
02-17-2003, 06:02 PM
|
#8
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
02-17-2003, 06:10 PM
|
#9
|
Member
Registered: Jan 2003
Location: Long Island
Posts: 72
Original Poster
Rep:
|
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?
|
|
|
02-17-2003, 06:12 PM
|
#10
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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 08:37 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|