LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-04-2006, 06:31 PM   #1
animelook
LQ Newbie
 
Registered: Aug 2006
Distribution: Debian
Posts: 12

Rep: Reputation: 0
No htdocs for Apache


I installed Apache (with PHP) on my Debian system using this:
Code:
apt-get install apache2 libapache2-mod-php4
However, I can't seem to find the webroot folder... isn't it usually /var/www/htdocs?

Any help is appreciated.

K-kun
 
Old 08-04-2006, 06:40 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
If you mean the document root, you can check the file /etc/apache2/sites-available/default.
 
Old 08-04-2006, 06:52 PM   #3
animelook
LQ Newbie
 
Registered: Aug 2006
Distribution: Debian
Posts: 12

Original Poster
Rep: Reputation: 0
I did a whereis search on "sites-available", but it came up with nothing.
 
Old 08-04-2006, 06:57 PM   #4
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
I think whereis only finds commands, man whereis.

I'm using Debian Sarge and for apache2, the document root is /var/www as defined in the file /etc/apache2/sites-available/default
 
Old 08-04-2006, 07:06 PM   #5
animelook
LQ Newbie
 
Registered: Aug 2006
Distribution: Debian
Posts: 12

Original Poster
Rep: Reputation: 0
I'm sorry- I didn't understand what you mean.

It appears to be /var/www for me as well.

Thanks!
 
Old 08-04-2006, 07:37 PM   #6
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,020

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
A default compile and configuration of Apache will set you up for that htdocs directory you're used to. However, if you're not compiling it yourself and are installing it from some distro's packaging system, all the defaults may have been changed.

On my Debian box with Apache installed from a package, my main config file is not the expected httpd.conf -- it's apache2.conf. This was probably set by the package maintainer in the configure script or somewhere else during compilation.

My apache2.conf contains the line "Include /etc/apache2/sites-enabled/[^.#]*" so I then go look at /etc/apache2/sites-enabled/000-default (the only file in that directory). Inside that file I find what I'm looking for, a directive that says "DocumentRoot /var/www"

These are not standard Apache defaults, they were evidently chosen by the package maintainer. I'm sure you're running into a similar situation.
 
  


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
showing the files in htdocs GeorgeP Linux - Software 6 05-30-2006 12:38 AM
white box: where is htdocs? rvc13 Linux - Newbie 1 02-12-2005 07:24 AM
apache looking for documentroot in /usr/htdocs niehls Linux - Software 3 07-06-2003 05:39 PM
Where is the htdocs folder for Apache? Ekim Gram Linux - Newbie 5 05-24-2003 07:16 AM
Apache HTDOCS help needed plz RecoilUK Linux - General 7 07-16-2001 01:51 PM


All times are GMT -5. The time now is 07:39 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration