LinuxQuestions.org
Visit Jeremy's Blog.
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 02-17-2003, 02:20 PM   #1
Z28kid
Member
 
Registered: Jan 2003
Location: Long Island
Posts: 72

Rep: Reputation: 15
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?
 
Old 02-17-2003, 02:25 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
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...
 
Old 02-17-2003, 04:03 PM   #3
Z28kid
Member
 
Registered: Jan 2003
Location: Long Island
Posts: 72

Original Poster
Rep: Reputation: 15
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?
 
Old 02-17-2003, 05:15 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

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

Cool
 
Old 02-17-2003, 05:51 PM   #5
Z28kid
Member
 
Registered: Jan 2003
Location: Long Island
Posts: 72

Original Poster
Rep: Reputation: 15
i did that to and it still says "no such file or directory"

i have no clue..
 
Old 02-17-2003, 05:54 PM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
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
 
Old 02-17-2003, 06:00 PM   #7
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
What about searching for it?

First do:

updatedb

That will take a while. Then do:

locate httpd.conf
 
Old 02-17-2003, 06:02 PM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
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
 
Old 02-17-2003, 06:10 PM   #9
Z28kid
Member
 
Registered: Jan 2003
Location: Long Island
Posts: 72

Original Poster
Rep: Reputation: 15
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?
 
Old 02-17-2003, 06:12 PM   #10
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
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
 
  


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
Apache Directory Listing Of NFS Mount, cannot view directory list via apache luqmana Linux - Networking 2 12-19-2005 07:03 AM
Apache Directory 2782d4 Linux - Software 3 10-12-2005 04:33 PM
apache - directory listing thejackal13 Linux - Software 1 01-05-2005 11:31 AM
apache list directory linuxtesting2 Linux - Networking 5 09-24-2004 04:46 PM
apache directory Longinus Linux - Software 2 04-05-2004 06:37 AM

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

All times are GMT -5. The time now is 10:59 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration